void MLReleaseUCS2Symbol(MLINK link, unsigned short *s, int len)
記号の名前に対応していて長さがlen のUCS-2 Unicode文字列を保持するために,MLGetUCS2Symbol() で割り当てられたメモリを解放する.


  • MLReleaseUCS2Symbol()MathLink ヘッダファイルmathlink.hの中で宣言される.


例 (1)例 (1)

#include "mathlink.h"

/* read a UCS-2 encoded symbol from a link and then release the memory to MathLink for deallocation */

void f(MLINK lp)
    unsigned short *symbol;
    int length;

    if(! MLGetUCS2Symbol(lp, &symbol, &length))
        { /* unable to read the UCS-2 symbol */ }

    /* ... */

    MLReleaseUCS2Symbol(lp, symbol, length);
New to Mathematica? Find your learning path »
Have a question? Ask support »