MLReleaseNetworkAddressList (C Function)
MLReleaseNetworkAddressList has been replaced by WSReleaseNetworkAddressList.
void MLReleaseNetworkAddressList(MLENV env,char **l,int n)
frees the memory allocated by MLGetNetworkAddressList() stored in list l of length n.
Examples
Basic Examples (1)
#include "mathlink.h"
/* A function that reads the IP addresses available on a machine */
void f(MLENV env)
{
char **theList = NULL;
char *tmp;
unsigned long length;
theList = MLGetNetworkAddressList(env, &length);
if(length > 0 && theList != (char **)0)
{
while((tmp = *theList++) != (char *)0)
{
/* ... */
}
MLReleaseNetworkAddressList(env, theList, length);
}
}