WinApi_NullString

Returns a FoxPro string from a null terminated C style string. Terminates the input string at the first CHR(0) found.

Note: This is a static function not a method of wwAPI

WinApi_NullString(lcString)

Parameters

lcString
The null terminated C string returned from an API call. String will be stripped at the first CHR(0)/null.

Remarks

Use this function if you are calling APIs that are returning string buffers that are not truncated at nulls natively. Most APIs truncate, but occasionally there are APIs that do not and that's what this function is for.


See also:

Class wwAPI

© West Wind Technologies, 1996-2019 • Updated: 11/13/18
Comment or report problem with topic