file_demo.c
changeset 8 96d16dfe787a
parent 0 af501b0c1716
child 9 c3fecc82ade6
equal deleted inserted replaced
7:a1aa30f0f904 8:96d16dfe787a
    39         if (write (fd2, str, strlen (str) + 1) == -1)
    39         if (write (fd2, str, strlen (str) + 1) == -1)
    40             perror ("FD2");
    40             perror ("FD2");
    41 
    41 
    42     close (fd1);
    42     close (fd1);
    43     close (fd2);
    43     close (fd2);
    44     return 0;
    44 
       
    45     return EXIT_SUCCESS;
    45 }
    46 }