wm: teppich

ref: 1a9e9aa22d5ea5a83bcdfc43b636c43dfb0c7ee8
dir: /libc/lldel.c/

View raw version
#include <u.h>
#include <libc.h>
#include <err.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;
}