cjson · Section 3
cjson_declare
NAME
cjson_declare - declare an uninitialized cjson variable
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cjson.h> cjson_declare(var_name);
DESCRIPTION
Expands to `cjson var_name`. It exists so that cjson follows the same naming convention as the other container modules. You must assign the variable before you use it, for example with the result of cjson_parse() or of one of the cjson_create_*() functions.
PARAMETERS
var_name Name of the variable to declare.
EXAMPLES
cjson_declare(root); root = cjson_parse("{\"k\":1}", NULL); cjson_destroy(root);