Post* new_post = malloc(sizeof(Post));
    strncpy(new_post->author, author_casted->name, MAX_NAME); //set author
    //new_post->contents = NULL;
    new_post->contents = contents; //set contents
    time_t *curtime;
    time(curtime);
    new_post->date = curtime; // set date

    new_post->next = target->first_post;
    target->first_post = new_post;
    return 0;
}
I am trying to save the current time, as a time object in the new_post->date attribute, which is of typetime_t *