/*
 * Print a user profile.
 * For an example of the required output format, see the example output
 * linked from the handout.
 * Return:
 *   - 0 on success.
 *   - 1 if the user is NULL.
 */
int print_user(const User *user) {
    // check that the user exists
    User *print_me = (User *) user;
    if (print_me == NULL){
        return 1;
    }
    printf("pfp here\n");
    FILE *pfp = fopen(print_me->profile_pic);
    printf("Name: %s\n", print_me->name);
    printf("------------------------------------------\n");
    printf("Friends:\n");
    // go through the friends of this user
    for(int i = 0; i < MAX_FRIENDS; i++){
        // make sure that the user at the index is not NULL
        if(print_me->friends[i] != NULL){
            // print the name of that friend (who is a User)
            printf("%s\n", print_me->friends[i]->name);
        }
    }
    printf("------------------------------------------\n");
    printf("Posts: \n");
    if(print_me->first_post != NULL){
        Post *curr_post = print_me->first_post;
        while(curr_post != NULL){
            // do stuff to it here!!!!!!
            printf("From: %s\n", curr_post->author);
            printf("Date: %s\n", ctime(curr_post->date));
            printf("%s\n", curr_post->contents);
            curr_post = curr_post->next;
        }
    }
    return 0;
}
print the pfp (profile pic) in the beginning of the code.
open the file containing it and print its contents.