typedef struct user {
    char name[MAX_NAME];
    char profile_pic[MAX_NAME];  // This is a *filename*, not the file contents.
    struct user *friends[MAX_FRIENDS];
    struct user *next;
} User;

int create_user(const char *name) {

    struct user new_user;
    struct user new_user;
    strcpy(new_user.name, name);
    new_user->profile_pic = malloc(sizeof(char) * MAX_NAME);
    // initialize post
    new_user->friends = malloc(sizeof(struct user));
    new_user.next = NULL;
fix "operator -> or ->* applied to "struct user" instead of to a pointer type"