Suppose there is only user in the list of users. Why does the if statement after the while loop not remove the one user and set the list of users to be NULL?
 */
int delete_user(const char *name, User **user_ptr_del) {
        User *curr_user = *user_ptr_del;
        if (curr_user == NULL){
                return 1;
        }
        while (curr_user->next != NULL) {
                if (strcmp((curr_user->next)->name, name) == 0){
                        User *temp = curr_user->next;
                        rm_from_friends(temp);
                        curr_user->next = temp->next;
                        free(temp);
                        return 0;
                }
                curr_user = curr_user->next;
        }
        if (strcmp(curr_user->name, name) == 0){
                rm_from_friends(curr_user);
                free(curr_user);
                *user_ptr_del = NULL;
                return 0;
        }
        return 1;
}

