WSLINK (C 函数)
WSLINK (C 函数)
是一个表示 WSTP 链接对象的 WSTP 类型.
更多信息
类似于 Mathematica 中的 LinkObject.- WSLINK 被定义在文件 wstp.h 中,它应该被包含在任何 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;
}
相关指南
历史
1996年引入 (3.0)