| _CP_mkstr | Index Level | _CP_num |
| Syntax | CPSTR* _CP_mkstrl(char* cstring, int expression) |
| Category | C Interface |
| Type | C Function |
| Description | dynamically allocates a CPSTR* of length expression and fills it with a copy of cstring. |
| Options | |
| See Also | C Functions introduction |
| Example | CPSTR * s = _CP_mkstr("Hi",2); |
| Warnings |
The CPSTR* that is created must be later freed with _CP_str_free.
This function is more efficient that the similar _CP_mkstr() because _CP_mkstrl() does not need to scan the cstring. |
| Compatibility | AP 6.1 |
| _CP_mkstr | Index Level | _CP_num |