ref: 97ec62235b22bebe63c08c659bbdfdf052bb8afe dir: /libc/lllen.c/
#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; }