#include #include #include "nodelink.h" #include "strbst.h" node* newnode(void) { node* new = malloc(sizeof(node)); new->links = newbst(); return new; } static char* empty(void) { char* out = malloc(sizeof(char)); *out = 0; return out; } link* newlink(node* to) { link* new = malloc(sizeof(link)); new->desc = empty(); // preferred to NULL because it can be printed new->to = to; return new; }