ref: 6fd9e6e6e3becca66d74f3dc7590c6a0497e86fc 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; }