date is receiving junk when i am printing, whats a fix
int make_post(const User *author, User *target, char *contents) {

    if ((author == NULL) || (target == NULL)) {
        return 2;
    }
    if (!(is_friends(author, target))) {
        return 1;
    }

    Post *new_post = malloc(sizeof(Post));
    if (new_post == NULL) {
        perror("malloc");  // Look up the documentation for perror
        return 2;
    }
    new_post->contents = malloc(strlen(contents) + 1);
    if (new_post->contents == NULL) {
        perror("malloc");
        return 2;
    }

    strcpy(new_post->author, author->name);
    strcpy(new_post->contents, contents);


    time_t *date = malloc(sizeof(time_t));
    if (date == NULL) {
        perror("malloc");  // Look up the documentation for perror
        free(new_post->contents);
        free(new_post);
        return 2;
    }
    *date = time(NULL);
    time_t = date;
    new_post->date = *date;
    new_post->next = target->first_post;
    target->first_post = new_post;

    return 0;
}