int print_user(const User *user) {
    // characters to get from file
    char line[81];
    FILE *pfp;
    // int error;
    int valid_pfp = 1; // checks if pfp can be accessed

    // checks if user doesn't exist
    if (user == NULL) {
        return 1;
    }

    // checking if error opening file
    pfp = fopen(user->profile_pic, "r");
    if (pfp == NULL){
        valid_pfp = 0;
    }
    // print everything, skip profile picture if error with opening
    if (valid_pfp) {
        // print profile picture
        while (fgets(line, 81, pfp) != NULL){
            printf("%s", line);
        }
        // close file after use
        fclose(pfp);
        printf("\n");
    }
    printf("Name: %s\n", user->name);
    printf("------------------------------------------\n");
    printf("Friends:\n");
    // print out friends
    for (int i = 0; i < MAX_FRIENDS; i++) {
        if (user->friends[i] != NULL){
            printf("%s\n", user->friends[i]->name);
        }
    }
    printf("------------------------------------------\n");
    printf("Posts: \n");
    Post *curr = user->first_post;
    if (curr != NULL){
        while (curr->next != NULL){
            printf("From: %s\n", curr->author);
            printf("Date: %s\n", ctime(curr->date));
            printf("%s\n", curr->contents);
            printf("\n");
            printf("===\n");
            printf("\n");
            
            curr = curr->next;
        }
        printf("From: %s\n", curr->author);
        printf("Date: %s\n", ctime(curr->date));
        printf("%s\n", curr->contents);
    }
    printf("------------------------------------------\n");

    return 0;
}
print user information, fix set fault