WSPutUCS2String (C 函数)
int WSPutUCS2String(WSLINK link,const unsigned short *s,int n)
把一 n 个16位 UCS-2 字符字符串写入由 link 指定的 WSTP 连接.
范例
基本范例 (1)
#include "wstp.h"
/* send the string "Hello World" to a link */
void f(WSLINK lp)
{
unsigned short str[11];
str[0] = 'H';
str[1] = 'e';
str[2] = 'l';
str[3] = 'l';
str[4] = 'o';
str[5] = ' ';
str[6] = 'W';
str[7] = 'o';
str[8] = 'r';
str[9] = 'l';
str[10] = 'd';
if(! WSPutUCS2String(lp, (const unsigned short *)str, 11))
{ /* unable to put the string to lp */ }
}