I need some help finishing this add function in C. It adds aperson to the linked list and the node contains first name, lastname, and the phone number. Here are the structs:
typedef struct node {
char *first; // first name of the person
char *last; // last name of the person
long number; // a ten-digit phone number
struct node *nextFirst; // next item in list, ordered by firstname
struct node *nextLast; // next item in list, ordered by lastname
} Node;
typedef struct mlist {
Node *headFirstName;
Node *headLastName;
} MultiLinkedList;
MultiLinkedList *add(MultiLinkedList *list, char *first, char *last, long num) { // allocate
PayPal Gateway not configured
PayPal Gateway not configured