WSReleaseLinkProtocolNames (C Function)
void WSReleaseLinkProtocolNames( WSENV env , char ** n , int l )
releases memory allocated by WSGetAvailableLinkProtocolNames() to store the link protocol names in n and the length of the list in l.
Details
- The name list n must have come from a call to WSGetAvailableLinkProtocolNames().
- WSReleaseLinkProtocolNames() is declared in the WSTP header file wstp.h.
Examples
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);
}