C Collections

cyaml · Section 3

cyaml_int_val

cyaml_int_val - extract an integer value from a CYAML_INTEGER node

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
long long cyaml_int_val(cyaml node);

Returns the long long that node stores.  The function calls
ccol__fatal_err() when node is NULL and when node is not of type
CYAML_INTEGER.

node  A CYAML_INTEGER node.

The long long value.

cyaml_type(3), cyaml_create_int(3)