#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
-#include "../lib/sstring.h"
#include "hterm.h"
if (name == NULL || desc == NULL || hterm_get(*ptr, name))
return NULL;
+ for (;*ptr && strcmp(name, (*ptr)->name->content) > 0;ptr = &(*ptr)->next);
+
htrm = (hterm*)malloc(sizeof(hterm));
htrm->name = getsstring(name, strlen(name));
htrm->description = getsstring(desc, strlen(desc));