MLGetInteger64Array (C 函数)
MLGetInteger64Array 已经被 WSGetInteger64Array 所取代.
更多信息

- 数组 a 在内存中的布局像一个被声明为 mlint64
的 C 数组.
- heads 给出对应于出现在数组中的每层作为标头的符号名称的字符字符串列表.
- MLGetInteger64Array() 分配必须调用 MLReleaseInteger64Array() 来释放的内存. 如果 MLGetInteger64Array() 失败,函数的返回值表明一个错误,不要调用有 a 内容的 MLReleaseInteger64Array().
- MLGetInteger64Array() 返回不可变的数据.
- MLGetInteger64Array() 在错误事件中返回0,如果函数成功则返回非零值.
- 如果 MLGetInteger64Array() 失败,则使用 MLError() 检索错误代码.
- MLGetInteger64Array() 在 MathLink 的标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#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);
}