wm: teppich

ref: 48cc33b5b8717b83c4dea9130c4396b451480c56
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;
}