Pipes and COPY-ON-WRITE
In this example, every forked process gets its own copy of the
countervariable i through copy-on-write.
committer: Markus Bröker <mbroeker@largo.homelinux.org>
/**
* atoi_print.c
* Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv)
{
unsigned int i;
for (i = 1; i < argc; i++)
printf ("atoi(%s):=%d\n", argv[i], atoi (argv[i]));
return EXIT_SUCCESS;
}