MLReleaseLowLevelDeviceName (C Function)
MLReleaseLowLevelDeviceName has been replaced by WSReleaseLowLevelDeviceName.
void MLReleaseLowLevelDeviceName ( MLINK l , const char * n )
releases memory allocated by MLLowLevelDeviceName() to store the low-level protocol form of the link name of the MathLink connection specified by l.
Details
- The memory used by the name n must have been created by a call to MLLowLevelDeviceName().
- MLReleaseLowLevelDeviceName() is declared in the MathLink header file mathlink.h.
Examples
Basic Examples (1)
#include "mathlink.h"
int main(int argc, char **argv)
{
MLENV env;
MLINK link;
int error;
const char *name;
int apiResult;
env = MLInitialize((MLEnvironmentParameter)0);
if(env == (MLENV)0)
{ /* Unable to create environment object */ }
link = MLOpenArgcArgv(env, argc, argv, &error);
if(link == (MLINK)0 || error != MLEOK)
{ /* Unable to create the link object */ }
MLActivate(link);
apiResult = MLLowLevelDeviceName(link, &name);
if(apiResult == 0)
{ /* Failed to retrieve low level name */ }
/* ... */
MLReleaseLowLevelDeviceName(link, name);
/* .... */
MLClose(link);
MLDeinitialize(env);
return 0;
}