[SOLVED] CS #include

$25

File Name: CS_#include.zip
File Size: 103.62 KB

5/5 - (1 vote)

#include
#include
#include
#include

int main(void)
{
pid_t pid;

pid = fork();
if (pid != 0) {
/* Parent */
int status;
wait(&status);
/* == waitpid(pid, &status, 0) */
printf(Child returned %d
,
WEXITSTATUS(status));
} else {
/* Child */
printf(Will exit soon!
);
exit(42);
}

return 0;
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS #include
$25