#include #include "node.h" int main(int argc, char* *argv){ NOD_Node *distros = NOD_CreateNode("Distros"); NOD_Node *linoox = NOD_CreateNode("GNU/Linux"); NOD_Node *debian = NOD_CreateNode("Debian"); NOD_Node *ubuntu = NOD_CreateNode("Ubuntu"); NOD_Node *mint = NOD_CreateNode("Linux Mint"); NOD_Node *devuan = NOD_CreateNode("Devuan"); NOD_Node *kali = NOD_CreateNode("Kali Linux"); NOD_Node *voidlinux = NOD_CreateNode("Void Linux"); NOD_Node *arch = NOD_CreateNode("Arch"); NOD_Node *manjaro = NOD_CreateNode("Manjaro"); NOD_Node *parabola = NOD_CreateNode("Parabola"); NOD_Node *endeavouros = NOD_CreateNode("EndeavourOS"); NOD_Node *bsd = NOD_CreateNode("BSD"); NOD_Node *freebsd = NOD_CreateNode("FreeBSD"); NOD_Node *openbsd = NOD_CreateNode("OpenBSD"); NOD_Node *debianbsd = NOD_CreateNode("Debian GNU/kFreeBSD"); NOD_NodeAddChild(distros, linoox); NOD_NodeAddChild(distros, bsd); NOD_NodeAddChild(linoox, debian); NOD_NodeAddChild(linoox, voidlinux); NOD_NodeAddChild(linoox, arch); NOD_NodeAddChild(debian, ubuntu); NOD_NodeAddChild(debian, devuan); NOD_NodeAddChild(debian, kali); NOD_NodeAddChild(ubuntu, mint); NOD_NodeAddChild(arch, manjaro); NOD_NodeAddChild(arch, parabola); NOD_NodeAddChild(arch, endeavouros); NOD_NodeAddChild(bsd, freebsd); NOD_NodeAddChild(bsd, openbsd); NOD_NodeAddChild(bsd, debianbsd); //NOD_NodeUnparent(child2); NOD_PrintNodeTree(distros); NOD_PrintNodeTree(arch); NOD_PrintNodeTree(linoox); NOD_PrintNodeTree(debian); NOD_PrintNodeTree(freebsd); NOD_DestroyNode(distros); NOD_DestroyNode(linoox); NOD_DestroyNode(debian); NOD_DestroyNode(ubuntu); NOD_DestroyNode(mint); NOD_DestroyNode(devuan); NOD_DestroyNode(kali); NOD_DestroyNode(voidlinux); NOD_DestroyNode(arch); NOD_DestroyNode(manjaro); NOD_DestroyNode(parabola); NOD_DestroyNode(endeavouros); NOD_DestroyNode(bsd); NOD_DestroyNode(freebsd); NOD_DestroyNode(openbsd); NOD_DestroyNode(debianbsd); return 0; }