ref: 75b1fcc9cf71fa5e72ac5030ac8815c7e6be674e 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; }