OpenersNotesSection(Spacer1)Details

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

MLReleaseLinkProtocolNames() is declared in the MathLink header file (RefLink[mathlink.h, paclet:/ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "mathlink.h"

/* A function for retrieving the available link protocols */

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

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

	/* ... */

	MLReleaseLinkProtocolNames(env, protocols, length);
}

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