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

int main(){
    time_t date;
    time(&date);

    Post *ptr;
    ptr = malloc(sizeof(Post));
    strcpy(ptr->author, author->name);
    strcpy(ptr->contents, contents);
    ptr->date = &date;
    ptr->next = NULL;
}