18 lines
458 B
C
18 lines
458 B
C
#include "comment.h"
|
|
#include <stdlib.h>
|
|
|
|
CommentHeader *
|
|
mk_comment_header(int reply_id, time_t creation_time, size_t text_length, char *user_sid, char *user_displayname)
|
|
{
|
|
CommentHeader *header = malloc(sizeof(CommentHeader));
|
|
|
|
header->reply_id = reply_id;
|
|
header->creation_time = creation_time;
|
|
header->text_length = text_length;
|
|
|
|
header->user_sid = user_sid;
|
|
header->user_displayname = user_displayname;
|
|
|
|
return header;
|
|
}
|