WSGetReal32 (C 函数)
int WSGetReal32(WSLINK link,float *x)
从 link 中获取一个单精度的浮点数,并以 float 的形式存在 x 中.
范例
基本范例 (1)
#include "wstp.h"
/* read a single-precision floating-point number from a link */
void f(WSLINK lp)
{
float r;
if(! WSGetReal32(lp, &r))
{ /* unable to read the floating-point number from lp */ }
/* ... */
}