This feature is not supported on the Wolfram Cloud.

void WSReleaseLinksFromEnvironment(WSENV e, WSLINK *l, int n)
releases memory allocated by WSGetLinksFromEnvironment() to store the links in l, a list of length n.


ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

/* A function for retrieving the current links open from an environment */

void f(WSENV e)
    WSLINK *theList;
    int length;

    if(! WSGetLinksFromEnvironment(e, &theList, &length))
    { /* Unable to get the list of links */ }

    /* ... */

    WSReleaseLinksFromEnvironment(e, theList, length);