qments/src/comment.c

18 lines
458 B
C
Raw Normal View History

2023-06-15 01:44:02 +03:00
#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;
}