Mathematica > Systems Interfaces & Deployment > C/C++ Language Interface > MathLink C Language Functions > MLParameters >
Mathematica > Systems Interfaces & Deployment > MathLink API > MathLink C Language Functions > MLParameters >

MLParameters


is a MathLink type used to contain user-supplied parameters or functionality for an MLENV object.
  • MLParameters is declared in the MathLink header file mathlink.h.
#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;
}
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF