wm: teppich

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