int print_user(const User *user) {
    if(user == NULL){return 1;}
    else{
        if(user->profile_pic[0] == '\0'){
            FILE * f = fopen(user->profile_pic, "r");
            if(f!=NULL){
                char line[101]; 
                while(fgets(line, 101, f)!= NULL){
                    fprintf(stdout, "%s", line);
                }
                fprintf(stdout, "\n");
                fclose(f);
            }
        }

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

        fprintf(stdout, "Friends:\n");
        int i = 0;
        while((user->friends)[i] != NULL && i != MAX_FRIENDS){
            fprintf(stdout, "%s\n", (user->friends)[i]->name);
            i++;
        }
        fprintf(stdout, "------------------------------------------\n");

        fprintf(stdout, "Posts:\n");
        Post *post;
        post = user->first_post;
        while(post != NULL){
            fprintf(stdout, "From: %s\n", post->author);
            fprintf(stdout, "Date: %s", ctime(post->date));
            fprintf(stdout,"\n");
            fprintf(stdout,"%s\n", post->contents);

            if(post->next != NULL){
                fprintf(stdout,"\n");
                fprintf(stdout,"===\n");
                fprintf(stdout,"\n");
            }
            post = post->next;
        }
        fprintf(stdout, "------------------------------------------\n");


        return 0;
    }
    
}