OpenersNotesSection(Spacer1)Details

The array a must have been created by a call to (NonWLLink[WSGetInteger8List(), paclet:ref/c/WSGetInteger8List]).

WSReleaseInteger8List() is declared in the WSTP header file (RefLink[wstp.h, paclet:ref/file/wstp.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include "wstp.h"

/* A function to read a list of 8-bit integers from a link */

void f(WSLINK l)
{
	unsigned char *a;
	int length;

	if(! WSGetInteger8List(l, &a, &length))
	{ /* Unable to read the list of integers from the link */ }

	/* ... */

	WSReleaseInteger8List(l, a, length);
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[WSGetInteger8List(), paclet:ref/c/WSGetInteger8List])  ▪  (NonWLLink[WSReleaseInteger16List(), paclet:ref/c/WSReleaseInteger16List])  ▪   (NonWLLink[WSReleaseInteger32List(), paclet:ref/c/WSReleaseInteger32List])  ▪  (NonWLLink[WSReleaseInteger64List(), paclet:ref/c/WSReleaseInteger64List])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Manipulating Expressions in External Programs, paclet:tutorial/ManipulatingExpressionsInExternalPrograms])}, {▪(RefLinkPlain[Handling Lists, Arrays, and Other Expressions, paclet:tutorial/HandlingListsArraysAndOtherExpressions])}, {▪(RefLinkPlain[Portability of WSTP Programs, paclet:tutorial/PortabilityOfWSTPPrograms])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Alphabetical Listing of WSTP C Functions, paclet:guide/AlphabeticalListingOfWSTPCFunctions])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Integers, paclet:guide/WSTPCFunctionsForExchangingIntegers])}, {▪(RefLinkPlain[WSTP C Functions for Exchanging Lists, paclet:guide/WSTPCFunctionsForExchangingLists])}})}})