How about doing the fopen part like
Code:if ( (fp = fopen("file_name", "w")) == NULL) { fprintf(stderr, "Couldn't open %s for writing\n", file_name); exit(1); }
Also, in the switch() statement after "case 'w':" there's
no "break" statement.
How about doing the fopen part like
Code:if ( (fp = fopen("file_name", "w")) == NULL) { fprintf(stderr, "Couldn't open %s for writing\n", file_name); exit(1); }
Also, in the switch() statement after "case 'w':" there's
no "break" statement.
Last edited by movl0x1; 05-18-2007 at 01:35 AM.