% % This file was automatically produced at Feb 27 2003, 22:51:56 by % c2latex call-print.c % \expandafter\ifx\csname indentation\endcsname\relax% \newlength{\indentation}\fi \setlength{\indentation}{0.5em} \begin{flushleft} {\tt \#include} $<${\tt{}stdio.h}$>$\mbox{}\\ {\tt \#include} $<${\tt{}unistd.h}$>$\mbox{}\\ \mbox{}\\ {\bf int} main()\mbox{}\\ \{ \mbox{}\\ \hspace*{8\indentation}printf( {\tt"hello world$\backslash$n"} );\mbox{}\\ \hspace*{8\indentation}{\bf int} pid = fork(); \mbox{}\\ \hspace*{8\indentation}printf( {\tt"fork returned \%d$\backslash$n"}, pid );\mbox{}\\ \hspace*{8\indentation}{\bf if} ( pid == 0 )\mbox{}\\ \hspace*{16\indentation}execl( {\tt"./print"}, {\tt"print"}, {\tt"1"}, {\tt"100"}, NULL ); \mbox{}\\ \hspace*{8\indentation}{\bf else}\mbox{}\\ \hspace*{16\indentation}execl( {\tt"./print"}, {\tt"print"}, {\tt"2"}, {\tt"100"}, NULL );\mbox{}\\ \}\mbox{}\\ \end{flushleft}