wm: teppich

ref: 4d5b562d78b2ac82526f634ee4800d25d1775065
dir: /libc/lldel.c/

View raw version
#include <u.h>
#include <err.h>
#include <mem.h>

/* deletes the next entry in the list */
int
lldel(ll_t *ll)
{
	ll_t *temp = ll->next;

	ll->next = temp->next;
	
	free(temp->val);
	free(temp);
	return OK;
}