int print_user(const User *user) {

    if (user == NULL) {
        return 1;
    }

    // char filename[MAX_NAME];
    // strncpy(filename, user->profile_pic, MAX_NAME);
    // need to add profile pic part
    FILE *file = fopen(user->profile_pic, "r");

    char str[60];

    while (fgets(str, 60, file) != NULL) {
        printf(str);
    }
    fclose(file);


    printf("Name: %s\n", user->name);

    printf("------------------------------------------\n");

    printf("Friends:\n");

    // getting all the friends
    for (int i = 0; i < MAX_FRIENDS; i++) {
        if (user->friends[i] != NULL) {
            // User *friend = user->friends[i];
            printf("%s\n", user->friends[i]->name);
        }
    }

    printf("------------------------------------------\n");

    printf("Posts:\n");

    Post *post = user->first_post;

    while (post != NULL) {

        printf("From: %s\n", post->author);
        printf("Date: %s\n\n", asctime(localtime(post->date)));
        printf("%s", post->contents);
        post = post->next;
    }
    
    if (post != NULL) {
        printf("===\n");
    }

    printf("------------------------------------------\n");

    
    return 0;
}
print a user profile