mirror of
https://github.com/bgp/bgpq4.git
synced 2024-05-11 05:55:05 +00:00
17 lines
292 B
C
17 lines
292 B
C
![]() |
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <strings.h>
|
||
|
|
||
|
#include "sx_slentry.h"
|
||
|
|
||
|
struct sx_slentry*
|
||
|
sx_slentry_new(char* t)
|
||
|
{
|
||
|
struct sx_slentry* e=malloc(sizeof(struct sx_slentry));
|
||
|
if(!e) return NULL;
|
||
|
memset(e,0,sizeof(struct sx_slentry));
|
||
|
if(t) e->text=strdup(t);
|
||
|
return e;
|
||
|
};
|