wm: teppich

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