typedef struct user {
    char name[MAX_NAME];
    char profile_pic[MAX_NAME];  // This is a *filename*, not the file contents.
    struct post *first_post;
    struct user *friends[MAX_FRIENDS];
    struct user *next;
} User;

typedef struct post {
    char author[MAX_NAME];
    char *contents;
    time_t *date;
    struct post *next;
} Post;

int delete_user(const char *name, User **user_ptr_del) {
    int no_exist = 1;
    User *head = *user_ptr_del;
    User *b_head = *user_ptr_del;
    while(head != NULL){
        if(strcmp(head->name, name) == 0){
            no_exist = 0;
            break;
        }
        b_head = head;
        head = head->next;
    }

    if(no_exist == 1){
        return 1;
    }
    else{
        remove_post(&(head->first_post));
        for(int i = 0; i < MAX_FRIENDS; i++){
            if(head->friends[i] != NULL){
                remove_friend(head->name, &(head->friends[i]));
            }
        }
        if(strcmp(b_head->name, head->name) == 0){
            *user_ptr_del = (head->next);
            free(head);
            return 0;
        }
        else{
            b_head->next = head->next;
            free(head);
            return 0;
        }
    }
    return -1;
}
Delete a User from the linked structure