diff options
Diffstat (limited to 'nodelink.h')
-rw-r--r-- | nodelink.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nodelink.h b/nodelink.h new file mode 100644 index 0000000..a1d5eed --- /dev/null +++ b/nodelink.h @@ -0,0 +1,20 @@ +#ifndef __NODELINK_H__ +#define __NODELINK_H__ + +#include "strbst.h" + +typedef struct node { + strbst* links; +} node; + +typedef struct link { + char* desc; + node* to; +} link; + +node* newnode(void); +link* newlink(node* to); + +void printnode(node* root); + +#endif |