struct function
- by gcc
typedef struct phoneEntry
{
struct phoneEntry* next;
char* info;
char* number;
} phoneEntry;
typedef struct contactEntry
{
struct contactEntry* next;
char* name;
char* surname;
struct phoneEntry* phoneList;
} contactEntry;
I want write a function that add a new contact to the phone book using given name and surname.(please, Note that a new contact should be located in the proper location which ensures the alphabetical ordering of the contacts.)
void addContact(contactEntry** phoneBook, char* name, char* surname)
{
}
I tried to write ,but ,unfortunetely, I cannot question is that there are any person who can help me.