WSPutUCS2Symbol (C 函数)
int WSPutUCS2Symbol(WSLINK link,const unsigned short *s,int len)
把由 s 给定名称且具有长度 len 的符号写入由 link 指定的 WSTP 连接.
范例
基本范例 (1)
#include "wstp.h"
/* send the symbol $Version to a link */
void f(WSLINK lp)
{
unsigned short symb[8];
symb[0] = '$';
symb[1] = 'V';
symb[2] = 'e';
symb[3] = 'r';
symb[4] = 's';
symb[5] = 'i';
symb[6] = 'o';
symb[7] = 'n';
if(! WSPutUCS2Symbol(lp, (const unsigned short *)symb, 8))
{ /* unable to send the symbol to lp */ }
}