int create_user(const char *name, User **user_ptr_add) {

    if(strlen(name) >= MAX_NAME){return 2;}
    else{
        User *new_user = malloc(sizeof(User));
        strcpy(new_user->name, name);
        new_user->profile_pic[0] = '\0';
        for(int i = 0;i<MAX_FRIENDS;i++){
            new_user->friends[i] = NULL;
        }
        new_user->first_post = NULL;
        new_user->next = NULL;

        
        User *prev = NULL;
        User *user = *user_ptr_add;
        
        while(user != NULL){
            if(strcmp(name, user->name) == 0){return 1;}
            prev = user;
            user = user-> next;
        }

        if(prev == NULL){*user_ptr_add = new_user;}
        else{prev->next = new_user;}
        return 0;
    }
}
/*
 * Create a new user with the given name.  Insert it at the tail of the list
 * of users whose head is pointed to by *user_ptr_add.
 *
 * Return:
 *   - 0 if successful.
 *   - 1 if a user by this name already exists in this list.
 *   - 2 if the given name cannot fit in the 'name' array
 *       (don't forget about the null terminator)
 */