wm: teppich

ref: 4695d500412add95b4ca42cbb224bf15bf21873e
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;
}