WSPutByteSymbol (C 関数)
int WSPutByteSymbol(WSLINK link,const unsigned char *s,long l)
長さl の文字列s によって名前が与えられる記号をlink で指定されたWSTP接続に置く.
例題
例 (1)
#include "wstp.h"
/* send the expression Integrate[Cos[y],y] to a link */
void f(WSLINK lp)
{
if(! WSPutFunction(lp, "Integrate", 2))
{ /* unable to put the function to lp */ }
if(! WSPutFunction(lp, "Cos", 1))
{ /* unable to put the function to lp */ }
if(! WSPutByteSymbol(lp, "y", 1))
{ /* unable to put the symbol to lp */ }
if(! WSPutByteSymbol(lp, "y", 1))
{ /* unable to put the symbol to lp */ }
if(! WSEndPacket(lp))
{ /* unable to send the end-of-packet indicator to lp */ }
if(! WSFlush(lp))
{ /* unable to flush any outgoing data buffered in lp */ }
}