C Collections

cyaml · Section 3

cyaml_dictionary_size

cyaml_dictionary_size - return the number of keys in a dictionary

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
size_t cyaml_dictionary_size(cyaml node);

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.

The number of keys, which is 0 for an empty dictionary.

cyaml_dictionary_first(3), cyaml_dictionary_get(3), cyaml_dictionary_set(3)