void MLReleaseByteSymbol(MLINK link, const unsigned char *s, int len)
释放由 MLGetByteSymbol() 分配的存储对应于一个符号名称的字符字符串 s 的内存.


  • MLReleaseByteSymbol()MathLink 标头文件 mathlink.h 中被声明.


基本范例 (1)基本范例 (1)

#include "mathlink.h"

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

void f(MLINK lp)
    unsigned char *sym;
    int len;

    if(! MLGetByteSymbol(lp, &sym, &len))
        { /* unable to read a symbol from lp */ }

    /* ... */

    MLReleaseByteSymbol(lp, sym, len);
New to Mathematica? Find your learning path »
Have a question? Ask support »