int MLPutIntegerArray(MLINK link, int *a, long *dims, char **heads, long d) puts an array of integers to the MathLink connection specified by link to form a depth d array with dimensions dims.
The array a must be laid out in memory like a C array declared explicitly as int a[m][n]... .
If heads is given as NULL, the array will be assumed to have head List at every level.
The length of the array at level i is taken to be dims[i].
See Section 2.13.4.
See also: MLPutIntegerList.