file_demo.c
changeset 27 81a574d60c15
parent 9 c3fecc82ade6
child 29 7abf6146898e
equal deleted inserted replaced
26:d227047a3e88 27:81a574d60c15
    11 #include <fcntl.h>
    11 #include <fcntl.h>
    12 
    12 
    13 int main (int argc, char **argv)
    13 int main (int argc, char **argv)
    14 {
    14 {
    15     int fd1;
    15     int fd1;
       
    16 
    16     int fd2;
    17     int fd2;
       
    18 
    17     int mode;
    19     int mode;
       
    20 
    18     char *str = "Schreib mal was!";
    21     char *str = "Schreib mal was!";
    19 
    22 
    20     if (argc != 2)
    23     if (argc != 2)
    21         return -1;
    24         return -1;
    22     mode = strtoul (argv[1], NULL, 8);
    25     mode = strtoul (argv[1], NULL, 8);