MLReleaseLinksFromEnvironment (C Function)
MLReleaseLinksFromEnvironment has been replaced by WSReleaseLinksFromEnvironment.
void MLReleaseLinksFromEnvironment( MLENV env , MLINK * l , int n )
releases memory allocated by MLGetLinksFromEnvironment() to store the links in l, a list of length n.
Details

- The list l must have been acquired from a call to MLGetLinksFromEnvironment().
- MLReleaseLinksFromEnvironment() is declared in the MathLink header file mathlink.h.
Examples
Basic Examples (1)
#include "mathlink.h"
/* A function for retrieving the current links open from an environment */
void f(MLENV env)
{
MLINK *theList;
int length;
if(! MLGetLinksFromEnvironment(env, &theList, &length))
{ /* Unable to get the list of links */ }
/* ... */
MLReleaseLinksFromEnvironment(env, theList, length);
}