OpenersNotesSection(Spacer1)Details

The array a must be laid out in memory like a C array declared explicitly as (NonWLLink[mlint64, paclet:ref/c/mlint64]) 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].

MLPutInteger64Array() 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 MLPutInteger64Array() fails.

MLPutInteger64Array() 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"

/* send an array of 64-bit numbers to a link */

void f(MLINK lp)
{
	mlint64 array[2][10][2][5];
	int dims[4];
	int i;

	for(i = 0; i < 200; i++)
		{
			*((mlint64 *)array + i) = i;
		}

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

	if(! MLPutInteger64Array(lp, (mlint64 *)array, (int *)dims, (char **)0, 4))
		{ /* unable to send the array to lp */ }
}

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

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