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