WSReleaseLogFileNameForLink (C Function)

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.

Details

  • 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.

Examples

Basic Examples  (1)

#include "wstp.h"

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

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

    /* ... */

    WSReleaseLogFileNameForLink(l, name);
}