From 7d1cf291deda94e44be525236195d835f7c8d35b Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 6 Feb 2019 08:02:45 +0100 Subject: Write contact list --- contactList.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'contactList.h') diff --git a/contactList.h b/contactList.h index c5cf10c..6d72dee 100644 --- a/contactList.h +++ b/contactList.h @@ -22,12 +22,12 @@ typedef struct contact { // Params: The CSV filename (separator ';', unexcaped string, so ';' is forbiden in value) // Return: 0 if success, >0 if error -int fillContactList(char* cvs_file_in); +int fillContactList(const char* cvs_file_in); // Params: A valide filename // Return: 0 if success, >0 if error -int writeContactList(char* cvs_file_in); +int writeContactList(const char* cvs_file_in); // Find a contact // Params: A SIM Number @@ -50,14 +50,7 @@ int addContact(const contact*); // Delete a contact // Params: A String which is a valide contact SIM number // Return: 0 if success, >0 otherwise -int deleteContactFromNumber(const char*); - - -// Delete a contact from his name -// Params: A String which is a valide contact SIM number -// Return: 0 if success, >0 otherwise -int deleteContactFromName(const char*); - +int deleteContact(void); // Sort the contact list // Params : Nothing -- cgit v1.2.3-54-g00ecf