MLReleaseSymbol()
This feature is not supported on the Wolfram Cloud.

has been replaced by WSReleaseSymbol.

void MLReleaseSymbol(MLINK link,char *s)
disowns memory allocated by MLGetSymbol() or MLGetFunction() to store the character string s corresponding to the name of a symbol.

DetailsDetails

  • MLReleaseSymbol() is declared in the MathLink header file mathlink.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "mathlink.h"

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

void f(MLINK lp)
{
    char *sym;

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

    /* ... */

    MLReleaseSymbol(lp, sym);
}