MLPutUTF32Symbol has been replaced by WSPutUTF32Symbol.

int MLPutUTF32Symbol(MLINK link,const unsigned int *s,int len)

puts a symbol whose name is given by UTF-32 encoded string s with length len to the MathLink connection specified by link.


  • The symbol must be encoded in the UTF-32 character encoding form.
  • The symbol s must start with a byte order mark.
  • The length of the symbol len must include the byte order mark.
  • MLPutUTF32Symbol() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use MLError() to retrieve the error code if MLPutUTF32Symbol() fails.
  • MLPutUTF32Symbol() is declared in the MathLink header file mathlink.h.


Basic Examples  (1)

#include "mathlink.h"

/* send the symbol $SessionID to a link */

void f(MLINK lp)
    unsigned int symb[11];

    symb[0] = 0xFEFF;
    symb[1] = '$';
    symb[2] = 'S';
    symb[3] = 'e';
    symb[4] = 's';
    symb[5] = 's';
    symb[6] = 'i';
    symb[7] = 'o';
    symb[8] = 'n';
    symb[9] = 'I';
    symb[10] = 'D';

    if(! MLPutUTF32Symbol(lp, (const unsigned int *)symb, 11))
        { /* unable to send the symbol to lp */ }

See Also

MLPutSymbol()  MLPutUCS2Symbol()  MLPutUTF8Symbol()  MLPutUTF16Symbol()