#include "mathlink.h"
/* read an array of 64-bit integers from a link */
void f(MLINK lp)
{
mlint64 *data;
int *dims;
char **heads;
int d;
if(! MLGetInteger64Array(lp, &data, &dims, &heads, &d))
{
/* unable to get the array of 64-bit integers from lp */
return;
}
/* ... */
MLReleaseInteger64Array(lp, data, dims, heads, d);
}