MLPutInteger16List (C Function)
MLPutInteger16List has been replaced by WSPutInteger16List.
int MLPutInteger16List(MLINK link,const short *a,int n)
puts a list of 16-bit integers starting from location
to the MathLink connection specified by
.
Details
![](Files/MLPutInteger16List.en/details_1.png)
- 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.
Examples
Basic Examples (1)
#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 */ }
}