OpenersNotesSection(Spacer1)Details

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

heads gives a list of character strings corresponding to the names of symbols that appear as heads at each level in the array.

MLGetReal128Array() allocates memory which must be disowned by calling (NonWLLink[MLReleaseReal128Array(), paclet:ref/c/MLReleaseReal128Array]). If MLGetReal128Array() fails and the function's return value indicates an error, do not call (NonWLLink[MLReleaseReal128Array(), paclet:ref/c/MLReleaseReal128Array])on the contents of a.

MLGetReal128Array() returns immutable data.

MLGetReal128Array() returns 0 in the event of an error, and a nonzero value if the function succeeds.

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

MLGetReal128Array() is declared in the MathLink header file (RefLink[mathlink.h, paclet:ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "mathlink.h"

/* read an array of extended-precision floating-point numbers from a link */

void f(MLINK lp)
{
	mlextended_double *data;
	int *dims;
	char **heads;
	int d;

	if(! MLGetReal128Array(lp, &data, &dims, &heads, &d))
		{
			/* unable to read the array of numbers from lp */
			return;
		}

	/* ... */

	MLReleaseReal128Array(lp, data, dims, heads, d);
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[MLReleaseReal128Array(), paclet:ref/c/MLReleaseReal128Array])  ▪  (NonWLLink[MLGetReal32Array(), paclet:ref/c/MLGetReal32Array])  ▪  (NonWLLink[MLGetReal64Array(), paclet:ref/c/MLGetReal64Array])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Manipulating Expressions in External Programs, paclet:tutorial/ManipulatingExpressionsInExternalPrograms])}, {▪(RefLinkPlain[Handling Lists, Arrays and Other Expressions, paclet:tutorial/HandlingListsArraysAndOtherExpressions])}})}})