WSPutUTF32Symbol (C 函数)
int WSPutUTF32Symbol(WSLINK link,const unsigned int *s,int len)
把由 UTF-32 编码的字符串 s 给定名称且具有长度 len 的符号写入由 link 指定的 WSTP 连接.
范例
基本范例 (1)
#include "wstp.h"
/* send the symbol $SessionID to a link */
void f(WSLINK lp)
{
unsigned int symb[11];
symb[0] = 0xFEFF;
symb[1] = '$';
symb[2] = 'S';
symb[3] = 'e';
symb[4] = 's';
symb[5] = 's';
symb[6] = 'i';
symb[7] = 'o';
symb[8] = 'n';
symb[9] = 'I';
symb[10] = 'D';
if(! WSPutUTF32Symbol(lp, (const unsigned int *)symb, 11))
{ /* unable to send the symbol to lp */ }
}