C Collections

cyaml · Section 3

cyaml_bool_val

cyaml_bool_val - extract a boolean value from a CYAML_BOOL node

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
bool cyaml_bool_val(cyaml node);

Returns the C bool that node stores.  The function calls
ccol__fatal_err() when node is NULL and when node is not of type
CYAML_BOOL.

node  A CYAML_BOOL node.

The C bool value.

cyaml_type(3), cyaml_create_bool(3)