|
SOLUTIONS
|
MATHEMATICA MATHLINK C FUNCTION
MLErrorMessage()
const char * MLErrorMessage(MLINK link)
returns a character string describing the last error to occur on link.
DetailsDetails
- MLErrorMessage() is declared in the MathLink header file mathlink.h.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
#include "mathlink.h"
/* send the double precision floating-point number 3.22 to a link and print an error message if the send fails */
void f(MLINK lp)
{
if(! MLPutReal64(lp, 3.22))
{
/* unable to send 3.22 to lp */
printf("MathLink Error: %s\n", MLErrorMessage(lp));
}
/* ... */
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
