MLPutInteger32List (C 関数)

MLPutInteger32ListWSPutInteger32Listに置き換えられた.

int MLPutInteger32List(MLINK link,const int *a,int n)

の場所から始まる 個の32ビットの整数のリストを, で指定されたMathLink接続に置く.

詳細

  • 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 */ }
}