MLPutInteger8List (C 関数)

MLPutInteger8ListWSPutInteger8Listに置き換えられた.

int MLPutInteger8List(( MLINK l , unsigned char * a , int n )

位置 a から始まる n 個の8ビット整数のリストを,l で指定されたMathLink接続に置く.

詳細

  • MLPutInteger8List()は,エラーが起った場合には0を,関数が成功した場合には非零の値を返す.
  • MLPutInteger8List()が失敗した場合には,MLError()を使ってエラーコードを得るとよい.
  • MLPutInteger8List()は,MathLinkヘッダファイルmathlink.hで宣言される.

例題

  (1)

#include "mathlink.h"

/* A function to send a one-dimensional list of 8-bit integers to a link */

void f(MLINK l)
{
    unsigned char list[10];
    int i;

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

    if(! MLPutInteger8List(l, (unsigned char *)list, 10))
    { /* Unable to send the list to the link */ }
}