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

  • intMLPutByteString(MLINKlink,unsignedchar*s,longn) puts a string of n characters starting from location s to the MathLink connection specified by link.
  • All characters in the string must be specified using character codes as obtained from ToCharacterCode in Mathematica.
  • Newlines must thus be specified in terms of their raw character codes, rather than using \n.
  • MLPutByteString() handles only characters with codes less than 256.
  • It can handle both ordinary ASCII as well as ISO Latin-1 characters.
  • See the Mathematica book: Section 2.12.5.
  • See also: MLPutStringMLPutStringMainBookLinkOldButtonDataMLPutString, MLPutIntegerListMLPutIntegerListMainBookLinkOldButtonDataMLPutIntegerList.