MLGetReal128List has been replaced by WSGetReal128List.

int MLGetReal128List(MLINK link,mlextended_double **a,int *n)

gets a list of extended-precision floating-point numbers from the MathLink connection specified by link, storing the numbers in the array a and the length of the list in n.


  • MLGetReal128List() allocates memory for the array of numbers. You must call MLReleaseReal128List() to disown this memory. If MLGetReal128List() fails and the function's return value indicates an error, do not call MLReleaseReal128List() on the contents of a.
  • External programs should not modify the array generated by MLGetReal128List().
  • MLGetReal128List() returns immutable data.
  • MLGetReal128List() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use MLError() to retrieve the error code if MLGetReal128List() fails.
  • MLGetReal128List() is declared in the MathLink header file mathlink.h.


Basic Examples  (1)

#include "mathlink.h"

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

void f(MLINK lp)
    mlextended_double *list;
    int length;

    if(! MLGetReal128List(lp, &list, &length))
            /* unable to read the list of numbers from lp */

    /* ... */

    MLReleaseReal128List(lp, list, length);

See Also

MLReleaseReal128List()  MLGetReal32List()  MLGetReal64List()