This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / The Mathematica Book / Reference Guide / Listing of C Functions in the MathLink Library  /
MLGetUnicodeString()

  • intMLGetUnicodeString(MLINKlink,unsignedshort**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.
  • MLGetUnicodeString() allocates memory for the character string. You must call MLDisownUnicodeString() to disown this memory.
  • External programs should not modify strings generated by MLGetUnicodeString().
  • MLGetUnicodeString() stores all characters directly in 16-bit Unicode form.
  • 8-bit ASCII characters are stored with a null high-order byte.
  • See the Mathematica book: Section 2.12.5.
  • See also: MLGetStringMLGetStringMainBookLinkOldButtonDataMLGetString, MLGetByteStringMLGetByteStringMainBookLinkOldButtonDataMLGetByteString.