_CP_str_alloc

_CP_str_alloc


_CP_str0 Index Level _CP_str_copy
Syntax CPSTR* _CP_str_alloc(int expression)
Category C Interface
Type C Function
Description allocates space for a CPSTR.
Equivalent of "malloc()", but returns a CPSTR*. "expression" should contain the length of the string buffer to allocate. A 0 will be returned if failure occurs.
Options
See Also C Functions introduction _CP_str_free _CP_str_realloc
Example
Warnings The CPSTR* that _CP_str_alloc creates must be later freed with _CP_str_free, not free().
Compatibility AP 6.1
_CP_str0 Index Level _CP_str_copy