WSGetInteger (C Function)
WSGetInteger (C Function)
int WSGetInteger(WSLINK link,int *i)
gets an integer from the WSTP connection specified by link and stores it in i.
Details

- If the data on the link corresponds to a real number, WSGetInteger() 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 WSGetInteger() will fail, and return 0.
- You can get arbitrary-precision integers by first using IntegerDigits to generate lists of digits, then calling WSGetIntegerList().
- WSGetInteger() is equivalent to WSGetInteger32().
See Also
C Functions: WSGetShortInteger() WSGetLongInteger()
History
Introduced in 1996 (3.0) | Updated in 2007 (6.0)