docs
[mirrors/Programs.git] / c / fork.c
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 int test = 1;
5 int main(void) {
6 int *ptr;
7 ptr = &test;
8 if(!fork()) {
9 *ptr = 2;
10 return;
11 }
12 while(test == 1) printf("");
13 printf("lol\n");
14 }
This page took 0.281182 seconds and 4 git commands to generate.