From dac4b31e5e5591e5dd0fbba48fa4b9fcce744c8e Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 6 Feb 2019 05:38:02 +0100 Subject: Debug mode --- contactList.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contactList.c') 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 } } -- cgit v1.2.3