#include #include int main(int argc, char *argv[] ) { char line[1000]; while ( 1 ) { printf("Enter a line:\n"); scanf( "%[^\n]", line ); getchar(); if ( fork( ) != 0 ) { printf("Parent process: I will go read a line again\n"); } else { printf("Child process... your line is: %s\n", line); printf("Child process... here is it again: %s\n", line); printf("Child process: Done !!\n"); exit(0); } } }