int delete_user(const char *name, User **user_ptr_del) {
    // find the user with that username
    User *delete_me = find_user(name, *user_ptr_del);
    // if it does not exist, return 1
    if (delete_me == NULL){
        return 1;
    }

    // once established that the user that u wanna delete does indeed exist in the
    // list pointed to by *user_ptr_delete, start the process of DELETING it

    // start by removing the user from its friends lists of friends

    // remove the posts of the user that's being deleted
    if(delete_me->first_post != NULL){
        Post *curr_post = delete_me->first_post;
        while(curr_post != NULL){
            Post *next_post = curr_post->next;
            free(curr_post->date);
            free(curr_post->contents);
            free(curr_post);
            curr_post = next_post;
        }
    }
    // go through the friends of the user we are deleting
    for(int index = 0; index < MAX_FRIENDS; index++){
        // go to every spot in it
        User *friend_of_deleted = delete_me->friends[index];
        // if there's a friend in that spot, gotta go delete delete_me from its friends array
        if(friend_of_deleted != NULL){
            // go through its list of friends and find delete_me, then change it to null
            for(int j = 0; j < MAX_FRIENDS; j++){
                if(friend_of_deleted->friends[j] == delete_me){
                    friend_of_deleted->friends[j] = NULL;
                    break;
                }
            }
        }

    }

    // go through the linked list of users and delete the user u want to delete
    // special case if the user we want to delete IS at the beginning of the LL
    if(*user_ptr_del == delete_me){
        User *after = delete_me->next;
        *user_ptr_del = after;
    }
    // start at the beginning of the Linked List
    User *curr_user = *user_ptr_del;
    // find the node aka the user you want to delete
    while(curr_user->next != delete_me){
        curr_user = curr_user->next;
    }
    // once delete_me has been found, store the link to the node (user) after it
    User *after_deleted = curr_user->next->next;
    // make the node before the one being deleted point to the user after the one being deleted
    curr_user->next = after_deleted;
    // free memory for the node (user) that's being deleted aka delete_me
    free(delete_me);

    return 0;

}
/*
 * 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.
 */
make sure there are no memory leaks