MLGetNext (C Function)
MLGetNext has been replaced by WSGetNext.
int MLGetNext(MLINK link)
goes to the next object on link and returns its type.
Details
- The following token values can be returned:
-
MLTKERR error MLTKINT integer MLTKFUNC composite function MLTKREAL approximate real number MLTKSTR character string MLTKSYM symbol MLTKOLDINT integer from older versions of the MathLink library MLTKOLDREAL approximate real number from older versions of the MathLink library MLTKOLDSTR character string from older versions of the MathLink library MLTKOLDSYM symbol from older versions of the MathLink library MLTKOPTSTR character string from newest versions of the MathLink library MLTKOPTSYM symbol from newest versions of the MathLink library - MLTKINT and MLTKREAL do not necessarily signify numbers that can be stored in C int and double variables.
- MLGetNext() is declared in the MathLink header file mathlink.h.
Examples
Basic Examples (1)
#include "mathlink.h"
/* read the next type from the link */
void f(MLINK lp)
{
int data;
switch(MLGetNext(lp))
{
case MLTKINT:
if(! MLGetInteger32(lp, &data))
{ /* unable to read the integer from lp */ }
/* ... */
}
}