wm: teppich

ref: bb4b8654acda0d7ec184206cf0ed186d6625ba6e
dir: /libc/lldel.c/

View raw version
/* deletes the next entry in the list */
int
lldel(ll_t *ll)
{
	ll_t *temp = ll->next;
	if(ll->next != nil)
		return LL_ERR;

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