cyaml · Section 3
cyaml_dictionary_size
NAME
cyaml_dictionary_size - return the number of keys in a dictionary
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cyaml.h> size_t cyaml_dictionary_size(cyaml node);
DESCRIPTION
Returns the number of key-value pairs of the CYAML_DICTIONARY node. The function calls ccol__fatal_err() when node is NULL and when node is not of type CYAML_DICTIONARY.
RETURN VALUE
The number of keys, which is 0 for an empty dictionary.
SEE ALSO
cyaml_dictionary_first(3), cyaml_dictionary_get(3), cyaml_dictionary_set(3)