cyaml · Section 3
cyaml_list_size
NAME
cyaml_list_size - return the number of elements in a list
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cyaml.h> size_t cyaml_list_size(cyaml node);
DESCRIPTION
Returns the number of child nodes of the CYAML_LIST node. The function calls ccol__fatal_err() when node is NULL and when node is not of type CYAML_LIST.
RETURN VALUE
The number of elements, which is 0 for an empty list.