WSPutInteger8List (C 函数)
int WSPutInteger8List(( WSLINK l , const unsigned char * a , int n )
把从位置 a 开始的 n 个8位整数列表写入由 l 指定的 WSTP 连接.
范例
基本范例 (1)
#include "wstp.h"
/* A function to send a one-dimensional list of 8-bit integers to a link */
void f(WSLINK l)
{
unsigned char list[10];
int i;
for(i = 0; i < 10; i++)
list[i] = i;
if(! WSPutInteger8List(l, (unsigned char *)list, 10))
{ /* Unable to send the list to the link */ }
}