MLReleaseLogFileNameForLink (C Function)

MLReleaseLogFileNameForLink has been replaced by WSReleaseLogFileNameForLink.

void MLReleaseLogFileNameForLink(MLINK l, const char *n)

releases memory allocated by MLLogFileNameForLink() to store the log name in n for the MathLink connection specified by l.

Details

  • The memory allocated to store the name n must have been created by a call to MLLogFileNameForLink().
  • MLReleaseLogFileNameForLink() is declared in the MathLink header file mathlink.h.

Examples

Basic Examples  (1)

#include "mathlink.h"

/* A function for generating a log file name for a link */

void f(MLINK l)
{
    const char *name;
    
    if(! MLLogFileNameForLink(l, &name))
    { /* Unable to get log file name for link */ }

    /* ... */

    MLReleaseLogFileNameForLink(l, name);
}