| Syntax |
CPSTR* _CP_mkstr(char* cstring)
|
| Category |
C Interface
|
| Type |
C Function
|
| Description |
dynamically allocates a CPSTR* and fills it with a copy of cstring.
|
| Options |
|
| See Also |
C Functions introduction _CP_print _CP_print_n
|
| Example |
CPSTR * s = _CP_mkstr("This is a string");
|
| Warnings |
The CPSTR* that is created must be later free'd with _CP_str_free.
This function is provided for convenience. The function _CP_mkstrl() is more efficient since it does not need to rescan the string to calculate the length.
|
| Compatibility |
AP 6.1
|