wm: teppich

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