WSReleaseLinkProtocolNames()
This feature is not supported on the Wolfram Cloud.

void WSReleaseLinkProtocolNames(WSENV e, 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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

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

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

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

    /* ... */

    WSReleaseLinkProtocolNames(e, protocols, length);
}