Wolfram Research, Inc.
int MLGetNext(MLINK link) goes to the next object on link and returns its type.
The following values can be returned:
MLTKINT and MLTKREAL do not necessarily signify numbers that can be stored in C int and double variables.
See The Mathematica Book: Section 2.12.12.
See also: MLGetArgCount.