PToCStr (LabVIEW Manager Function)
- 更新时间2025-07-30
- 阅读时长1分钟
int32 PToCStr(pstr, cstr);
Purpose
Converts a Pascal string to a C string. This function works even if the pointers pstr and cstr refer to the same memory location. The function assumes cstr is large enough to contain pstr.
Parameters
| Name | Type | Description |
|---|---|---|
| pstr | PStr | Pointer to a Pascal string. |
| cstr | CStr | Pointer to a C string. |
Return Value
The length of the string.