Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

This feature is not supported on the Wolfram Cloud.

is a WSTP type representing a WSTP link object.


  • is analogous to LinkObject in Mathematica.
  • WSLINK is defined in the file wstp.h, which should be included in the source code for any WSTP-compatible program.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (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 */ }

    /* ... */

    return 0;