|
SOLUTIONS
|
MATHEMATICA MATHLINK C FUNCTION
MLClearError()
int MLClearError(MLINK link)
clears errors on
if possible.
DetailsDetails
- MLClearError() will activate a previously unactivated link.
- MLClearError() will return 0 for certain catastrophic errors such as MLEDEAD that indicates that the link has closed unexpectedly.
- MLClearError() returns a nonzero value on successful completion.
- MLClearError() is declared in the MathLink header file mathlink.h.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
#include <stdio.h>
#include "mathlink.h"
/* send an integer to a link and check for an error */
void f(MLINK lp)
{
if(! MLPutInteger(lp, 10))
{
printf("MathLink error: %s\n", MLErrorMessage(lp));
MLClearError(lp);
}
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
