C Collections

cyaml · Section 3

cyaml_type

cyaml_type - return the type tag of a node

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
cyaml_node_type cyaml_type(cyaml node);

Returns the cyaml_node_type tag of node, or CYAML_NULL when node
is NULL.
 
The tag is one of CYAML_NULL, CYAML_BOOL, CYAML_INTEGER, CYAML_FLOAT,
CYAML_STRING, CYAML_LIST and CYAML_DICTIONARY.

node  A DOM node handle, which may be NULL.

A cyaml_node_type constant.

cyaml_type_str(3)