Skip to content

Wonkey types string tocstring

wonkey:wonkey.types.String.ToCString

Method ToCString:Void( buf:Void Ptr,bufSize:Int )#

Converts the string to a CString.

If there is enough room in the memory buffer, a null terminating '0' is appended to the CString.

Parameters
buf buf Memory buffer to write the CString to.
bufSize bufSize Size of the memory buffer in bytes.