ref: b9d66bc012e6a431a75bf4d9a138cf6c2a8eb6f6
dir: /libc/lladd.c/
#include <u.h>
#include <err.h>
#include <mem.h>
int
lladd(ll_t *last, void *data)
{
ll_t *temp;
temp->val = data;
temp->next = nil;
if(last->next != nil)
return LL_ERR;
temp = malloc(sizeof(ll_t*));
last->next = temp;
return OK;
}