errors to stderr
This commit is contained in:
Binary file not shown.
@ -18,7 +18,7 @@ void pointerCheck(void *pointer) { // Funktion um auf NULL Pointer zu checken un
|
|||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
if(argc != 2) {
|
if(argc != 2) {
|
||||||
printf("file argument required"); // checkt ob der Nutzer die richtige Anzahl von Argumenten verwendet hat.
|
fprintf(stderr, "file argument required\n"); // checkt ob der Nutzer die richtige Anzahl von Argumenten verwendet hat.
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
bool sucess;
|
bool sucess;
|
||||||
|
|||||||
@ -26,7 +26,7 @@ bool checkRow(char *row) {
|
|||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
if(argc == 1) { // das Programm wird beendet wenn die Anzahl der Argumente falsch ist.
|
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);
|
exit(-1);
|
||||||
}
|
}
|
||||||
for(int filePath = 1; filePath < argc; ++filePath) {
|
for(int filePath = 1; filePath < argc; ++filePath) {
|
||||||
|
|||||||
Reference in New Issue
Block a user