actube/src/cw/mdata_elem_new.c
7u83@mail.ru ca22c44590 Work on msgset
FossilOrigin-Name: 47f9ccd5e442443a9023a8d408ef2ebe2d073c947767058ba631d8b1a94063b2
2018-03-03 07:15:19 +00:00

16 lines
226 B
C

#include <stdlib.h>
#include "mdata.h"
struct mdata_Elem *mdata_elem_new( const struct mdata_Type * type )
{
struct mdata_Elem *i= malloc(sizeof(struct mdata_Elem));
if (!i)
return NULL;
i->type = type;
return i;
}