LToCStrN (LabVIEW Manager Function)
- 更新时间2025-07-30
- 阅读时长2分钟
uInt32 LToCStrN(ConstLStrPtr, CStr, uInt32);
Purpose
Converts a LabVIEW string to a C string, even if the pointers source and dest refer to the same memory location. If the length of source is greater than destSize, this function converts only the first characters that fit into the C string buffer. The function assumes that destSize is the size of dest in bytes.
Parameters
| Name | Type | Description |
|---|---|---|
| source | ConstLStrP | Pointer to a LabVIEW string. |
| dest | CStr | Pointer to a C string. |
| destSize | uInt32 | Size of the C string buffer. |
Return Value
The length of the string, truncated to the maximum number of characters specified by destSize.