/* Creates and returns pointer to new User with given name and next value. */
User *create_new_user(const char* name, User *next) {
    User *new_user = calloc(1, sizeof(User));
    strncpy(new_user->name, name, MAX_NAME);

    *(new_user->friends) = calloc(MAX_FRIENDS, sizeof(User));

    for (int i = 0; i < MAX_FRIENDS; i ++){
        (new_user->friends)[i] = calloc(1, sizeof(User));
        (new_user->friends)[i] = NULL;
    }

    new_user->first_post = NULL;

    (new_user->profile_pic)[0] = '\0';

    new_user->next = next;
    return new_user;
}

Creates a new dynamically allocated User with dynamically allocated friends attribute