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  /

  • intMLGetString(MLINKlink,char**s) gets a character string from the MathLink connection specified by link, storing the string in s.
  • MLGetString() allocates memory for the character string. You must call MLDisownString() to disown this memory.
  • External programs should not modify strings generated by MLGetString().
  • MLGetString() creates a string that is terminated by \0.
  • MLGetString() stores single \ characters from Mathematica as pairs of characters \\.
  • MLGetString() stores special characters from Mathematica in a private format.
  • See the Mathematica book: Section 2.12.5.
  • See also: MLGetByteStringMLGetByteStringMainBookLinkOldButtonDataMLGetByteString, MLGetUnicodeStringMLGetUnicodeStringMainBookLinkOldButtonDataMLGetUnicodeString.