WSLINK (C 函数)
是一个表示 WSTP 链接对象的 WSTP 类型.
范例
基本范例 (1)
#include "wstp.h"
int main(int argc, char **argv)
{
WSENV ep;
WSLINK lp;
long error;
ep = WSInitialize((WSEnvironmentParameter)0);
if(ep == (WSENV)0)
{ /* unable to initialize environment */ }
lp = WSOpenArgcArgv(ep, argv, argv + argc, &error);
if(lp == (WSLINK)0 || error != WSEOK)
{ /* unable to create link */ }
/* ... */
WSClose(lp);
WSDeinitialize(ep);
return 0;
}