int print_user(const User *user) {
    if (user == NULL) {
        return 1;
    }
    if (user->profile_pic[0] == '\0'){
        FILE *fp;
        char line[100000];

        fp = fopen(user->profile_pic, "r");
        if (fp == NULL) {
            printf("Error opening file\n");
            return 1;
        }

        while (fgets(line, 10000, fp) != NULL) {
            printf("%s", line);
        }

        fclose(fp);
    }

    printf("\nName: %s\n", user->name);
    printf("------------------------------------------\n");
    printf("Friends:\n");
    for (int i = 0; i < MAX_FRIENDS; i++) {
        if (user->friends[i] == NULL) {
            break;
        }
        printf("%s\n", user->friends[i]->name);
    }
    printf("------------------------------------------\n");
    printf("Posts:\n");

    Post *curr = user->first_post;
    int counter = 1;
    while (curr != NULL){
        if (counter > 1){
            printf("\n\n===\n\n");
        }
        printf("From: %s\nDate: %s\n%s\n", curr->author, ctime(curr->date), curr->contents);
        curr = curr -> next;
        counter++;
    }
    printf("------------------------------------------\n");
    return 0;
}
To print out the profile of the user 