WSClearError (C Function)
int WSClearError(WSLINK link)
clears errors on if possible.
- 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.
Basic Examples (1)
/* send an integer to a link and check for an error */
void f(WSLINK lp)
if(! WSPutInteger(lp, 10))
printf("WSTP error: %s\n", WSErrorMessage(lp));
Introduced in 1996
|Updated in 2007