wm: teppich

ref: 41c7b8cc5ebc3000271bc6b5d9931cc959a8d663
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;
}