diff options
author | ache <ache@ache.one> | 2019-02-06 05:38:02 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-02-06 05:38:02 +0100 |
commit | dac4b31e5e5591e5dd0fbba48fa4b9fcce744c8e (patch) | |
tree | 5e873b5769d4d09512e712f336a621de0dd492fb /contactList.c | |
parent | gcc11 (diff) |
Debug mode
Diffstat (limited to 'contactList.c')
-rw-r--r-- | contactList.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contactList.c b/contactList.c index a5c7107..cbc3b24 100644 --- a/contactList.c +++ b/contactList.c @@ -73,7 +73,7 @@ int fillContactList(char* filename) { } if( !file ) { - perror("Unable to read contact file"); + fprintf(stderr, "Unable to read contact file: "); return 1; } @@ -83,7 +83,7 @@ int fillContactList(char* filename) { if( c == ';' ) { v++; if( v >= 3) { - perror("Invalid format (contact file) : too many field"); + fprintf(stderr, "Invalid format (contact file) : too many field"); return 2; // Invalid } } @@ -93,7 +93,7 @@ int fillContactList(char* filename) { nbContacts++; } else {// Not enougth - perror("Invalid format (contact file) : not enougth field"); + fprintf(stderr, "Invalid format (contact file) : not enougth field"); return 2; // Invalid format } } |