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

has been replaced by WSPutInteger64.

int MLPutInteger64(MLINK link,mlint64 i)
puts the native 64-bit integer i to the MathLink connection specified by link.

DetailsDetails

  • You can send arbitrary-precision integers to the Wolfram Language by giving lists of digits, then converting them to numbers using FromDigits.
  • MLPutInteger64() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use MLError() to retrieve the error code if MLPutInteger64() fails.
  • MLPutInteger64() is declared in the MathLink header file mathlink.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "mathlink.h"

/* send a 64-bit number to a link */

void f(MLINK lp)
{
    mlint64 a;

    a = 0x6553600065535;

    if(! MLPutInteger64(lp, a))
        { /* unable to send the 64 bit integer to lp */ }
}