cstring · Section 3
cstr_construct_mp
NAME
cstr_construct_mp - declare and initialise a cstr with custom memory management
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> cstr_construct_mp(s, initial, mprocs);
DESCRIPTION
This macro does cstr_declare() and cstr_init_mp() in one statement, so you get a cstr that uses the custom memory management procedures you pass.
PARAMETERS
s Variable name to create initial Initial content (C string or NULL for empty string) mprocs Custom memory management procedures (ccol_memmgmt_procs *)
SEE ALSO
cstr_construct(3), cstr_construct_mp_scoped(3), cstr_init_mp(3)