WSTP C Functions for Exchanging Strings

Sending Strings

(NonWLLink[WSPutString(), paclet:ref/c/WSPutString]) — null-terminated Wolfram Language strings

(NonWLLink[WSPutByteString(), paclet:ref/c/WSPutByteString]) — 8-bit character strings

(NonWLLink[WSPutUCS2String(), paclet:ref/c/WSPutUCS2String]) — 16-bit UCS-2 strings

(NonWLLink[WSPutUTF8String(), paclet:ref/c/WSPutUTF8String]) — UTF-8 strings

(NonWLLink[WSPutUTF16String(), paclet:ref/c/WSPutUTF16String]) — UTF-16 strings

(NonWLLink[WSPutUTF32String(), paclet:ref/c/WSPutUTF32String]) — UTF-32 strings

Receiving Strings

(NonWLLink[WSGetString(), paclet:ref/c/WSGetString]) — null-terminated Wolfram Language strings

(NonWLLink[WSGetByteString(), paclet:ref/c/WSGetByteString]) — 8-bit character strings

(NonWLLink[WSGetUCS2String(), paclet:ref/c/WSGetUCS2String]) — 16-bit UCS-2 strings

(NonWLLink[WSGetUTF8String(), paclet:ref/c/WSGetUTF8String]) — UTF-8 strings

(NonWLLink[WSGetUTF16String(), paclet:ref/c/WSGetUTF16String]) — UTF-16 strings

(NonWLLink[WSGetUTF32String(), paclet:ref/c/WSGetUTF32String]) — UTF-32 strings

Releasing Memory for Strings

(NonWLLink[WSReleaseString(), paclet:ref/c/WSReleaseString]) — release WSTP memory allocated to a string

(NonWLLink[WSReleaseByteString(), paclet:ref/c/WSReleaseByteString]) — 8-bit character strings

(NonWLLink[WSReleaseUCS2String(), paclet:ref/c/WSReleaseUCS2String]) — 16-bit UCS-2 strings

(NonWLLink[WSReleaseUTF8String(), paclet:ref/c/WSReleaseUTF8String]) — UTF-8 strings

(NonWLLink[WSReleaseUTF16String(), paclet:ref/c/WSReleaseUTF16String]) — UTF-16 strings

(NonWLLink[WSReleaseUTF32String(), paclet:ref/c/WSReleaseUTF32String]) — UTF-32 strings