wm: teppich

ref: becccca115f0f2c1f42f12fd891481bd8211eb44
dir: /libc/lllen.c/

View raw version
#include <u.h>

int
lllen(ll_t *head)
{
	int i;
	ll_t *t;
	
	t = head;
	i = 0;
	while(t != nil)
	{
		i++;
		t = t->next;
	}
	return i;
}