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 /

MLGetString()

FilledSmallSquare int MLGetString(MLINK link, char **s) gets a character string from the MathLink connection specified by link, storing the string in s.

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

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

FilledSmallSquare MLGetString() creates a string that is terminated by \0.

FilledSmallSquare MLGetString() stores single \ characters from Mathematica as pairs of characters \\.

FilledSmallSquare MLGetString() stores special characters from Mathematica in a private format.

FilledSmallSquare See Section 2.13.5.

FilledSmallSquare See also: MLGetByteString, MLGetUnicodeString.