int make_post(const User *author, User *target, char *contents) {
    if (author == NULL || target == NULL) {
        // Check if either User pointer is NULL
        return 2;
    }

    int i = 0;
    while (i < MAX_FRIENDS && author->friends[i] != NULL && author->friends[i] != target) {
        // Traverse through the author's friends; friendship is symmetrical so we don't need to do the same for target
        i++;
    }
    if ((i == MAX_FRIENDS && author->friends[i - 1] != target) || author->friends[i] == NULL) {
        // Check if users exist but are not friends
        return 1;
    }

    // We can create the post
    Post *new_post = malloc(sizeof(Post));
    strcpy(new_post->author, author->name);
    //new_post->contents = malloc(sizeof(strlen(contents)));
    //strcpy(new_post->contents, contents);
   // *(new_post->date) = time(NULL);

    if (target->first_post == NULL) {
        target->first_post = new_post;
    } else {
        new_post->next = target->first_post;
        target->first_post = new_post;
    }
    return 0;
}
linked list