|
SOLUTIONS
|
MATHEMATICA MATHLINK C FUNCTION
MLVersionNumbers()
void MLVersionNumbers(MLENV ep, int *inumb, int *rnumb, int *bnumb)
returns the MathLink API interface number, revision number, and build number and stores them respectively in inumb, rnumb, and bnumb.
DetailsDetails
- For computer systems where the MathLink libraries are distributed as dynamic library modules, MLVersionNumbers() allows a runtime inspection of the version information for the MathLink library.
- MLVersionNumbers() will also function for programs that use the MathLink library statically; however, the function return values will not change.
- MLVersionNumbers() is declared in the MathLink header file mathlink.h.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
#include <stdio.h>
#include "mathlink.h"
int main()
{
MLENV env;
int interface;
int revision;
int build;
env = MLInitialize((char *)0);
if(env == (MLENV)0)
{ /* unable to initialize the MathLink environment */ }
MLVersionNumbers(env, &interface, &revision, &build);
if(!(interface >= 3))
{
printf("Incorrect MathLink library available.\n");
MLDeinitialize(env);
return 1;
}
/* ... */
MLDeinitialize(env);
return 0;
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
