File: parent.c

package info (click to toggle)
eclipse-linuxtools 8.1.0%2Bdfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 42,888 kB
  • sloc: java: 149,148; xml: 22,186; ansic: 15,426; cpp: 326; makefile: 42; javascript: 29; sh: 19; python: 10
file content (16 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#define SIZE 10
int main() {
	if (fork()) {
		char *waste = (char *)malloc(sizeof(char) * SIZE);
	}
	else {
		execv("../basicTest/Debug/basicTest", NULL);
		perror("execv");
	}
	return 0;
}