include/slib/list.h
static inline size_t
list_size(const list_head_t *list)
{
    const list_head_t *e;
    size_t cnt = 0;

    for (e = list->next; e != list; e = e->next) {
        cnt++;
    }

    return cnt;
}
/* Return the number of elements in 'list'. */
Return the number of elements in 'list'.
Return the number of elements in ' list ' .
static inline size_t
list_size(const list_head_t *list)
{
    const list_head_t *e;
    size_t cnt = 0;
    for (e = list->next; e != list; e = e->next) {
        cnt++;
    }
    return cnt;
}
static inline size_t list_size ( const list_head_t * list ) { const list_head_t * e ; size_t cnt = 0 ; for ( e = list -> next ; e != list ; e = e -> next ) { cnt ++ ; } return cnt ; }
Return the number of elements in 'list'.
Return the number of elements in ' list ' .