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

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);
}