int print_user(const User *user) {
    if (user == NULL){
            return 1;
    }
    printf("Name: %s", user->name);
    printf("------------------------------------------");
    printf("Friends:\n");
    User *friends = (User *) user->friends;
    while (friends != NULL){
            printf("\t%s\n", friends->name);
            friends = friends->next;
    }
    printf("------------------------------------------");
    printf("Posts:");

    FILE *profile_pic;
    profile_pic = fopen(user->profile_pic, "r");
    c = fgetc(profile_pic);
      if( feof(profile_pic) ) {
         break ;
      }
      printf("%c", c);
    fclose(profile_pic);
    return 0;
}

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.