wm: teppich

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