OpenersNotesSection(Spacer1)Details

The name list n must have come from a call to (NonWLLink[WSGetAvailableLinkProtocolNames(), paclet:ref/c/WSGetAvailableLinkProtocolNames]).

WSReleaseLinkProtocolNames() 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 available link protocols */

void f(WSENV env)
{
	const char **protocols;
	int length;
	int apiResult;

	apiResult = WSGetAvailableLinkProtocolNames(env, &protocols, &length);
	if(apiResult != 0)
	{ /* Unable to get list of protocols from environment */ }

	/* ... */

	WSReleaseLinkProtocolNames(env, protocols, length);
}

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

({{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])}})}})