typedef struct post {
    char author[MAX_NAME];
    char *contents;
    time_t *date;
    struct post *next;
} Post;


void make_post(const User *author, User *target, char *contents) {
    // either one or author or target names does not exist
    if (author == NULL || target == NULL) {
        return 2;
    }
    /*
    So the flow goes like this (in make_post):
    1) check if user is null
    2) have a for loop that iterates until MAX_FRIENDS
    3) inside the for loop, make a check to see if the author and target are friends
    4) IF they are friends,  initialize the time_t curr_time and allocate space for
    the ENTIRE new post with MALLOC
    5) then assign the values for all the members of this struct
    (do the contents, time, next and author) and then make sure this post is the
    FIRST POST (linked list stuff you know)

    */

    // loop through one user's friends
    int friends = 0;
    for (int i = 0; i < MAX_FRIENDS; i++) {
        if (author->friends[i] == target) {
            friends = 1;
        }
    }
    // users not friends, early return
    if (friends == 0) {
        return 1;
    }

    // checks passed, initialize a new post
    Post *new_post = malloc(sizeof(struct post));
    // malloc error check
    if (new_post == NULL) {
        exit(1);
    }
    strcpy(new_post->author, author->name);
    strcpy(new_post->contents, contents);
    time_t *curr_time;
    new_post->date = curr_time;  // &curr_time?
    new_post->next = NULL;

    // 'send' post to target; pointer at head, takes care of both whether empty or not cases
    new_post->next = target->first_post;

    return 0;
}
how to fix warning: variable 'curr_time' is uninitialized when used here [-Wuninitialized]
    new_post->date = curr_time;