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

void WSReleaseLogFileNameForLink(WSLINK l, const char *n)
releases memory allocated by WSLogFileNameForLink() to store the log name in n for the WSTP connection specified by l.

DetailsDetails

  • The memory allocated to store the name n must have been created by a call to WSLogFileNameForLink().
  • WSReleaseLogFileNameForLink() is declared in the WSTP header file wstp.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

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

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

    /* ... */

    WSReleaseLogFileNameForLink(l, name);
}