int32 CToPStr(cstr, pstr);
Converts a C string to a Pascal string, even if the pointers cstr and pstr refer to the same memory location. If the length of cstr is greater than 255 characters, this function converts only the first 255 characters. The function assumes pstr is large enough to contain cstr.
Name | Type | Description |
---|---|---|
cstr | CStr | Pointer to a C string. |
pstr | PStr | Pointer to a Pascal string. |
The length of the string, truncated to a maximum of 255 characters.