MLPutInteger32List (C 函数)
MLPutInteger32List 已经被 WSPutInteger32List 所取代.
int MLPutInteger32List(MLINK link,int *a,int n)
把从位置 a 开始的 n 个32位整数列表写入由 link 指定的 MathLink 连接.
更多信息
![](Files/MLPutInteger32List.zh/details_1.png)
- MLPutInteger32List() 在错误事件中返回0,如果函数成功则返回非零值.
- 如果 MLPutInteger32List() 失败,则使用 MLError() 检索错误代码.
- MLPutInteger32List() 在 MathLink 标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#include "mathlink.h"
/* send a one-dimensional list of 32-bit integers to a link */
void f(MLINK lp)
{
int list[10], i;
for(i = 0; i < 10; i++)
list[i] = i;
if(! MLPutInteger32List(lp, (int *)list, 10))
{ /* unable to send the list to lp */ }
}