5 write_data (FILE * stream
)
8 for (i
= 0; i
< 100; i
++)
9 fprintf (stream
, "%d\n", i
);
12 fprintf (stderr
, "Output to stream failed.\n");
23 output
= popen ("more", "w");
27 "incorrect parameters or too many files.\n");
31 if (pclose (output
) != 0)
34 "Could not run more or other error.\n");