errors to stderr

This commit is contained in:
2020-11-26 16:11:31 +01:00
parent b88a169b56
commit 7f20d41558
3 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ bool checkRow(char *row) {
int main(int argc, char *argv[]) {
if(argc == 1) { // das Programm wird beendet wenn die Anzahl der Argumente falsch ist.
printf("file argument required");
fprintf(stderr, "file argument required\n");
exit(-1);
}
for(int filePath = 1; filePath < argc; ++filePath) {