WSPutReal128List (C 函数)
int WSPutReal128List(WSLINK link,const wsextended_double *a,int n)
把从位置 a 开始的 n 个扩展精度浮点数列表写入由 link 指定的 WSTP 连接.
范例
基本范例 (1)
#include "wstp.h"
/* send a list of extended-precision floating-point numbers to a link */
void f(WSLINK lp)
{
wsextended_double list[20];
int i;
for(i = 0; i < 20; i++)
list[i] = i + .9;
if(! WSPutReal128List(lp, (wsextended_double *)list, 20))
{ /* unable to put the list to lp */ }
}