OpenersNotesSection(Spacer1)Details

The list l must have been acquired from a call to (NonWLLink[WSGetLinksFromEnvironment(), paclet:ref/c/WSGetLinksFromEnvironment]).

WSReleaseLinksFromEnvironment() is declared in the WSTP header file (RefLink[wstp.h, paclet:ref/file/wstp.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "wstp.h"

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

void f(WSENV env)
{
	WSLINK *theList;
	int length;

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

	/* ... */

	WSReleaseLinksFromEnvironment(env, theList, length);	
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[WSGetLinksFromEnvironment(), paclet:ref/c/WSGetLinksFromEnvironment])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Alphabetical Listing of WSTP C Functions, paclet:guide/AlphabeticalListingOfWSTPCFunctions])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Lists, paclet:guide/WSTPCFunctionsForExchangingLists])}})}})