1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main(int argc,char ** argv)5main (int argc, char **argv) 6 { 7 char buffer[1024]; 8 9 fgets (buffer, sizeof (buffer), stdin); 10 fprintf (stdout, "%s", buffer); 11 12 13 fgets (buffer, sizeof (buffer), stdin); 14 fprintf (stderr, "%s", buffer); 15 16 return 0; 17 } 18