MLPutInteger16List (C 関数)
MLPutInteger16ListはWSPutInteger16Listに置き換えられた.
int MLPutInteger16List(MLINK link,const short *a,int n)
の場所から始まる
個の16ビットの整数のリストを,
で指定されたMathLink接続に置く.
詳細
![](Files/MLPutInteger16List.ja/details_1.png)
- MLPutInteger16List()はエラーがあると0を返し,関数が成功すると0以外の値を返す.
- MLError()を使うと,MLPutInteger16List()が不成功の場合にエラーコードを引き出すことができる.
- MLPutInteger16List()は,MathLinkヘッダファイルmathlink.hの中で宣言される.
例題
例 (1)
#include "mathlink.h"
/* send a one-dimensional list of 16-bit integers to a link */
void f(MLINK lp)
{
short list[10], i;
for(i = 0; i < 10; i++)
list[i] = i;
if(! MLPutInteger16List(lp, (short *)list, 10))
{ /* unable to send the list to lp */ }
}