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

int WSPutReal128List(WSLINK link,const mlextended_double *a,int n)
puts a list of n extended-precision floating-point numbers starting from location a to the WSTP connection specified by link.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

/* send a list of extended-precision floating-point numbers to a link */

void f(MLINK lp)
{
    mlextended_double list[20];
    int i;

    for(i = 0; i < 20; i++)
        list[i] = i + .9;

    if(! WSPutReal128List(lp, (mlextended_double *)list, 20))
        { /* unable to put the list to lp */ }
}