WSPutSize (C 函数)
int WSPutSize(WSLINK link,int len)
指定写入 link 的文本数据的字节长度.
范例
基本范例 (1)
#include "wstp.h"
/* send the string "Hello World!" to a link */
void f(WSLINK lp)
{
if(! WSPutNext(lp, WSTKSTR))
{ /* unable to put the data type to lp */ }
if(! WSPutSize(lp, strlen("Hello World!"))
{ /* unable to put the string size to lp */ }
if(! MPutData(lp, "Hello World!", strlen("Hello World!")))
{ /* Unable to put the string contents to lp */ }
}