MLPutInteger32List (C 関数)
MLPutInteger32ListはWSPutInteger32Listに置き換えられた.
int MLPutInteger32List(MLINK link,const int *a,int n)
の場所から始まる
個の32ビットの整数のリストを,
で指定されたMathLink接続に置く.
詳細
![](Files/MLPutInteger32List.ja/details_1.png)
- MLPutInteger32List()はエラーがあると0を返し,関数が成功すると0以外の値を返す.
- MLError()を使うと,MLPutInteger32List()が不成功の場合にエラーコードを引き出すことができる.
- 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 */ }
}