WSPutInteger16 (C 関数)
int WSPutInteger16(WSLINK link,int i)
16ビットの整数i をlink で指定されたWSTP接続に置く.
例題
例 (1)
#include "wstp.h"
/* send the expression Times[10,30] to a link */
void f(WSLINK lp)
{
short a = 10;
short b = 30;
if(! WSPutFunction(lp, "Times", 2))
{ /* unable to put the function to lp */ }
if(! WSPutInteger16(lp, a))
{ /* unable to put the integer to lp */ }
if(! WSPutInteger16(lp, b))
{ /* unable to put the integer to lp */ }
if(! WSEndPacket(lp))
{ /* unable to send the end-of-packet indicator to lp */ }
if(! WSFlush(lp))
{ /* unable to flush outgoing data to lp */ }
}