WSGetReal128 (C 函数)
int WSGetReal128(WSLINK link,wsextended_double *d)
从 link 中获取一个扩展精度的浮点数,并把它存在 d 中.
范例
基本范例 (1)
#include "wstp.h"
/* read a extended-precision floating-point number from a link */
void f(WSLINK lp)
{
wsextended_double r;
if(! WSGetReal128(lp, &r))
{ /* unable to read the floating-point number from lp */ }
/* ... */
}