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