WSTP C Functions for Exchanging Strings
Sending Strings
WSPutString() — null-terminated Wolfram Language strings
WSPutByteString() — 8-bit character strings
WSPutUCS2String() — 16-bit UCS-2 strings
WSPutUTF8String() — UTF-8 strings
WSPutUTF16String() — UTF-16 strings
WSPutUTF32String() — UTF-32 strings
Receiving Strings
WSGetString() — null-terminated Wolfram Language strings
WSGetByteString() — 8-bit character strings
WSGetUCS2String() — 16-bit UCS-2 strings
WSGetUTF8String() — UTF-8 strings
WSGetUTF16String() — UTF-16 strings
WSGetUTF32String() — UTF-32 strings
Releasing Memory for Strings
WSReleaseString() — release WSTP memory allocated to a string
WSReleaseByteString() — 8-bit character strings
WSReleaseUCS2String() — 16-bit UCS-2 strings
WSReleaseUTF8String() — UTF-8 strings
WSReleaseUTF16String() — UTF-16 strings
WSReleaseUTF32String() — UTF-32 strings