Mathematica > Systems Interfaces & Deployment > C/C++ Language Interface > MathLink C Language Functions >
Mathematica > Systems Interfaces & Deployment > MathLink API > MathLink C Language Functions >
MathLink C Function

MLGetInteger()

int MLGetInteger(MLINK link, int *i)
gets an integer from the MathLink connection specified by link and stores it in i.
  • If the data on the link corresponds to a real number, MLGetInteger() will round it to an integer.
  • If the data on the link corresponds to an integer too large to store in a C int on your computer system, then MLGetInteger() will fail, and return 0.
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team