C Collections

cyaml · Section 3

cyaml_type_str

cyaml_type_str - return a string name for a node's type

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
const char *cyaml_type_str(cyaml node);

Returns a static string literal that names the type of node, such as
"CYAML_INTEGER", or "CYAML_UNKNOWN" for a type value that the
function doesn't expect.  It comes in handy in diagnostics and in
test output.

A static null-terminated string that the caller must not free.

cyaml_type(3)