// Assign space for new post 
	Post *new_post = (Post*) malloc(sizeof(Post));

	// Initialize poster 
	strncpy(new_post->author, author->name, MAX_NAME - 1);
	new_post->author[MAX_NAME-1] = '\0';

	// Initialize content
	new_post->contents = malloc(sizeof(contents)) ;
	long size_content = strlen(contents);
	strncpy(new_post->contents, contents, size_content - 1);
	new_post->contents[size_content - 1] = '\0';

	// Initialize date
	time_t *current_time = malloc(sizeof(time_t));
	time(current_time);
	new_post->date = current_time;

	// Put post at front 
	if (target->first_post == NULL){
		target->first_post = new_post;
	}
	else{
		Post *curr_first = target->first_post;
		new_post -> next = curr_first;
		target->first_post = new_post;
	}

	return 0;
The code above creates a new post, initializes its author, contents, and date, and then puts the post at the front of the list of posts for the target user.