OpenersNotesSection(Spacer1)Details

Use (NonWLLink[MLNewParameters(), paclet:ref/c/MLNewParameters]) to initialize an MLParameters object.

MLParameters is declared in the MathLink header file (RefLink[mathlink.h, paclet:ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

#include <stdlib.h>
#include "mathlink.h"

int main(int argc, char **argv)
{
	MLENV env;
	MLParameters p;

	if(! MLNewParameters((char *)p, MLREVISION, MLAPIREVISION))
		{ /* unable to initialize the parameters object */

	MLSetAllocParameter((char *)p, malloc, free);

	env = MLInitialize((char *)p);
	if(env == (MLENV)0)
		{ /* unable to initialize the MathLink environment */ }

	/* ... */

	MLDeinitialize(env);

	return 0;
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[MLNewParameters(), paclet:ref/c/MLNewParameters])  ▪  (NonWLLink[MLSetAllocParameter(), paclet:ref/c/MLSetAllocParameter])  ▪  (NonWLLink[MLAllocParameter(), paclet:ref/c/MLAllocParameter])}})}})