C Collections

cstring · Section 3

cstr_declare

cstr_declare - declare an uninitialised cstr variable

C Collections (libccollections, -lccollections)

#include <ccollections/cstring.h>
 
cstr_declare(s);

This macro expands to a plain cstr declaration. The variable is left
uninitialised and you must initialise it before you use it.

s   Name of the variable to declare

cstr_declare(greeting);
cstr_init(greeting, "Hello");
cstr_destroy(greeting);

cstr_declare_scoped(3), cstr_init(3), cstr_construct(3)