int delete_user(const char *name, User **user_ptr_del) {
    int exists = 0;
    User *current_user = *user_ptr_del;
    while (current_user != NULL) {
        if (strcmp(current_user->name, name) == 0) {
            for (int i = 0; i < MAX_FRIENDS; i++) {
                if(current_user->friends[i] != NULL){
                    //Look through targets list of friends' list of friends and delete target from them
                    for (int a = 0; a < MAX_FRIENDS; a++) {
                        if(current_user->friends[i]->friends[a] != NULL && strcmp(current_user->friends[i]->friends[a]->name, name) == 0){
                            current_user->friends[i]->friends[a] = NULL;
                        }
                    }
                }
            }
            exists = 1;
        }
        current_user = current_user->next;
    }
    if (exists == 1){
        // Free memory associated with user
        free(current_user->name);
        free(current_user->profile_pic);
        for (int i = 0; i < MAX_FRIENDS; i++) {
            free(current_user->friends[i]);
        }
        free(current_user->friends);

        Post*currentPost = current_user->first_post;
        while (currentPost != NULL){
            free(currentPost->author);
            free(currentPost->date);
            free(currentPost->contents);
            Post*nextPost = currentPost->next;
            free(currentPost);
            currentPost = nextPost;
        }
    
    free(current_user);
    return 0;
    }
    
    return 1;
}
From the list pointed to by *user_ptr_del, delete the user
 * with the given name.
 * Remove the deleted user from any lists of friends.
 *
 * Return:
 *   - 0 on success.
 *   - 1 if a user with this name does not exist.