Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > MathLink C Language Functions >
MathLink C Function

MLPutInteger16List()

int MLPutInteger16List(MLINK link, short *a, int n)
puts a list of n 16-bit integers starting from location a to the MathLink connection specified by link.
  • MLPutInteger16List() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use MLError() to retrieve the error code if MLPutInteger16List() fails.
  • MLPutInteger16List() is declared in the MathLink header file mathlink.h.
#include "mathlink.h"

/* send a one-dimensional list of 16-bit integers to a link */

void f(MLINK lp)
{
    short list[10], i;

    for(i = 0; i < 10; i++)
        list[i] = i;

    if(! MLPutInteger16List(lp, (short *)list, 10))
        { /* unable to send the list to lp */ }
}
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team