MLPutInteger64List (C 関数)

MLPutInteger64ListWSPutInteger64Listに置き換えられた.

int MLPutInteger64List(MLINK link,const mlint64 *a,int n)

の場所から始まる 個のネイティブの64ビットの整数のリストを で指定されたMathLink接続に置く.

詳細

  • MLPutInteger64List()はエラーがあると0を返し,関数が成功すると0以外の値を返す.
  • MLError()を使うと,MLPutInteger64List()が不成功の場合にエラーコードを引き出すことができる.
  • MLPutInteger64List()は,MathLinkヘッダファイルmathlink.hの中で宣言される.

例題

  (1)

#include "mathlink.h"

/* send a one-dimensional list of 64-bit integers to a link */

void f(MLINK lp)
{
    mlint64 list[10], i;

    for(i = 0; i < 10; i++)
        list[i] = i;

    if(! MLPutInteger64List(lp, (mlint64 *)list, 10))
        { /* unable to send the list to lp */ }
}