int delete_user(const char *name, User **user_ptr_del) {
    if (find_user(name, *user_ptr_del) == NULL){return 1;}
	else {
		//find user to get all the friends of name
		//for each one, find name in friends list and remove
		//shift all values after it down one index space
		//deallocate memory for user name
		int f = 0;
		User *user = find_user(name, *user_ptr_del);
		while ((user->friends)[f] != NULL){
			User *friend = find_user((user->friends)[f]->name, *user_ptr_del);
			int i = 0;
			while ((friend->friends)[i] != NULL){
				if (strcmp(((friend->friends)[i])->name, name) == 0){
					while ((friend->friends)[i] != NULL){
						if ((friend->friends)[i+1] == NULL){
							(friend->friends)[i] = NULL;
						}
						else {
							(friend->friends)[i] = (friend->friends)[i+1];
						}
					}
					break;
				}
				i++;
			}
			f++;
		}
		//store user->next
		//store prev
		//assign prev-> to user->next
		//free(User)
		User *curr = **user_ptr_del;
		while (curr != NULL){
			if (curr->next != NULL && strcmp(curr->next->name, name) == 0){
				User *prev = curr;
				User *nex;
				if (curr->next->next != NULL){
					nex = curr->next->next;
				}
				else {
					nex = NULL;
				}
				prev->next = nex;
				curr->next->next = NULL;
				break;
			}
			curr = curr->next;
		}
		free(user);
		return 0;
	}
	return -1;
}
remove segmentation fault