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;
                curr_user = NULL;
                // free(curr_user);
                return 0;
        }
        return 1;
}