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

int print_user(const User *user) {
        if (user == NULL) {
                return 1;
        }

        char *strike = "------------------------------------------\n";
        char *name, *friends, *posts;
        name = "Name: ";
        strcat(name, user->name);
        strcat(name, "\n\0");
        int i = 0;
        friends = "Friends:\n";
        while (i < MAX_FRIENDS && (user->friends)[i] != NULL) {
                strcat(friends, ((user->friends)[i])->name);
                strcat(friends, "\n");
        }
        strcat(friends, "\0");
        posts = "Posts:\n";

        printf("%s%s%s%s%s%s", name, strike, friends, strike, posts, strike);

        return 0;
}
Print a User profile formatted as
Name: <name>
------------------------------------------
Friends: <friends>
------------------------------------------
Posts:
------------------------------------------

Return 0 if successful
Return 1 if User is null