This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / The Mathematica Book / Mathematica Reference Guide / Listing of C Functions in the MathLink Library /

MLGetUnicodeString()

FilledSmallSquare int MLGetUnicodeString(MLINK link, unsigned short **s, long *n) gets a character string from the MathLink connection specified by link, storing the string in s as a sequence of 16-bit Unicode characters.

FilledSmallSquare MLGetUnicodeString() allocates memory for the character string. You must call MLDisownUnicodeString() to disown this memory.

FilledSmallSquare External programs should not modify strings generated by MLGetUnicodeString().

FilledSmallSquare MLGetUnicodeString() stores all characters directly in 16-bit Unicode form.

FilledSmallSquare 8-bit ASCII characters are stored with a null high-order byte.

FilledSmallSquare See Section 2.13.5.

FilledSmallSquare See also: MLGetString, MLGetByteString.