WSReleaseErrorMessage (C Function)

void MSReleaseErrorMessage(( WSLINK l , const char * m )

releases the memory used by an error message string generated by the WSTP connection specified in l, contained in m.


  • m must be a pointer to an error message string returned by WSErrorMessage().
  • WSReleaseErrorMessage() is declared in the WSTP header file wstp.h.


Basic Examples  (1)

#include <stdio.h>
#include "wstp.h"

/* A function to print a WSTP error message */

void f(WSLINK l)
    const char *message = WSErrorMessage(l);

    printf("WSTP Error: %s\n", message);

    WSReleaseErrorMessage(l, message);