parser/c_compiler/main.c
changeset 48 b94d657a9acb
parent 37 0fbbe329c3a2
child 77 49e0babccb23
equal deleted inserted replaced
47:63adb261de90 48:b94d657a9acb
    20 {
    20 {
    21     FILE *fp;
    21     FILE *fp;
    22 
    22 
    23     if (argc < 2) {
    23     if (argc < 2) {
    24         usage (argv[0]);
    24         usage (argv[0]);
    25         return EXIT_SUCCESS;
    25         return EXIT_FAILURE;
    26     }
    26     }
    27 
    27 
    28     if ((fp = fopen (argv[1], "r")) == NULL) {
    28     if ((fp = fopen (argv[1], "r")) == NULL) {
    29         perror ("FOPEN");
    29         perror ("FOPEN");
    30         return EXIT_FAILURE;
    30         return EXIT_FAILURE;