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 /

MLPutByteString()

FilledSmallSquare int MLPutByteString(MLINK link, unsigned char *s, long n) puts a string of n characters starting from location s to the MathLink connection specified by link.

FilledSmallSquare All characters in the string must be specified using character codes as obtained from ToCharacterCode in Mathematica.

FilledSmallSquare Newlines must thus be specified in terms of their raw character codes, rather than using \n.

FilledSmallSquare MLPutByteString() handles only characters with codes less than 256.

FilledSmallSquare It can handle both ordinary ASCII as well as ISO Latin-1 characters.

FilledSmallSquare See Section 2.13.5.

FilledSmallSquare See also: MLPutString, MLPutIntegerList.