OpenersNotesSection(Spacer1)Details

The array a must be laid out in memory like a C array declared explicitly as (NonWLLink[wsextended_double, paclet:ref/c/mlextended_double]) a[m][n]….

If heads is given as NULL, the array will be assumed to have head List at every level.

The length of the array at level i is taken to be dims[i].

WSPutReal128Array() returns 0 in the event of an error, and a nonzero value otherwise.

Use (NonWLLink[WSError(), paclet:ref/c/WSError]) to retrieve the error code if WSPutReal128Array() fails.

WSPutReal128Array() is declared in the WSTP header file (RefLink[wstp.h, paclet:ref/file/wstp.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "wstp.h"

/* put an array of extended-precision floating-point numbers to a link */

void f(WSLINK lp)
{
	wsextended_double array[2][10][2];
	int dims[3];
	int i;

	for(i = 0; i < 40; i++)
		*((wsextended_double *)array + i) = (wsextended_double)(i + .1);

	dims[0] = 2;
	dims[1] = 10;
	dims[2] = 2;

	if(! WSPutReal128Array(lp, (wsextended_double *)array, (int *)dims, (char **)0, 3))
		{ /* unable to send the array to lp */ }
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[WSPutReal32Array(), paclet:ref/c/WSPutReal32Array])  ▪  (NonWLLink[WSPutReal64Array(), paclet:ref/c/WSPutReal64Array])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Alphabetical Listing of WSTP C Functions, paclet:guide/AlphabeticalListingOfWSTPCFunctions])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Multidimensional Arrays, paclet:guide/WSTPCFunctionsForExchangingMultidimensionalArrays])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Reals, paclet:guide/WSTPCFunctionsForExchangingReals])}})}})