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