C Collections

cyaml · Section 3

cyaml_dictionary_get

cyaml_dictionary_get - look up a key in a dictionary

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
cyaml cyaml_dictionary_get(cyaml map, const char *key);

Returns the value that map stores under key.  The dictionary keeps
owning the value, so the reference is borrowed.

The child node, or NULL when map has no such key or is not a
CYAML_DICTIONARY.

cyaml_dictionary_set(3), cyaml_dictionary_first(3), cyaml_dictionary_size(3)