void printPicture(const User *user) {

    //if they have no profile picture we can just return since there is nothing
    //to print at all. 
    if (strlen(user->profile_pic) <= 0) {
        return;
    }

    //continues onward because there is something that is larger than 0,
    //in the profile pic object. 
    FILE *picture = fopen(user->profile_pic, "r");
    
    int edpoint;
    char printBuffer[1023];

    while (fgets(printBuffer, 1023, picture) != NULL) {
        edpoint = strlen(printBuffer) - 1;
        //checks if the last character of the string in printBuffer is a newline
        if (printBuffer[edpoint] == '\n') {
            /*replaces the last character of the string 
            in printBuffer with a null character*/
            printBuffer[edpoint] = '\0';
        }
        //prints the string in printBuffer
        printEntry(printBuffer);
    }
    //close the file
    fclose(picture);
}

/*Helper function that deletes all of the posts for a user and thenfrees all of 
the memory for the all posts for that user*/
void removePosts(Post *post) {
    //if the user has no posts then return because there is nothing to free.
    if (!post) {
        return;
    }

    //recursive function until we run out of posts to free. 
    removePosts(post->next);
    //free the memory for the contents of the posts
    free(post->contents);
    
    free(post);
}
remove all the posts in the linked list.