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

int WSClearError(WSLINK link)
clears errors on if possible.

DetailsDetails

  • WSClearError() will activate a previously unactivated link.
  • WSClearError() will return 0 for certain catastrophic errors such as WSEDEAD that indicates that the link has closed unexpectedly.
  • WSClearError() returns a nonzero value on successful completion.
  • WSClearError() is declared in the WSTP header file wstp.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

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

/* send an integer to a link and check for an error */

void f(MLINK lp)
{
    if(! WSPutInteger(lp, 10))
    {
        printf("WSTP error: %s\n", WSErrorMessage(lp));
        WSClearError(lp);
    }
}