Function sys_slist_len

Source
pub unsafe extern "C" fn sys_slist_len(
    list: *mut sys_slist_t,
) -> usize
Expand description

@brief Compute the size of the given list in O(n) time

@param list A pointer on the list

@return an integer equal to the size of the list, or 0 if empty