C Collections

cstring · Section 3

cstr_c_str

cstr_c_str - return a pointer to the null-terminated character data

C Collections (libccollections, -lccollections)

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

This macro just forwards its argument to cstring_c_str().

s   cstr to query

A pointer to the null-terminated character data

The pointer becomes invalid as soon as any operation changes the string

cstring_c_str(3), cstr_length(3)