WSPutInteger32List()
This feature is not supported on the Wolfram Cloud.

int WSPutInteger32List(WSLINK link,const int *a,int n)
puts a list of 32-bit integers starting from location to the WSTP connection specified by .

DetailsDetails

  • WSPutInteger32List() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use WSError() to retrieve the error code if WSPutInteger32List() fails.
  • WSPutInteger32List() is declared in the WSTP header file wstp.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

/* send a one-dimensional list of 32-bit integers to a link */

void f(MLINK lp)
{
    int list[10], i;

    for(i = 0; i < 10; i++)
        list[i] = i;

    if(! WSPutInteger32List(lp, (int *)list, 10))
        { /* unable to send the list to lp */ }
}