This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
Wolfram Research, Inc.

MLNextPacketMLOpenString

MLOpenArgv()

FilledSmallSquareMLINK MLOpenArgv(MLENV env, char **argv0, char **argv1, long *errno) opens a MathLink connection taking parameters from an argv array.

FilledSmallSquareMLInitialize() must be called before MLOpenArgv().

FilledSmallSquareMLOpenArgv() scans for the following at successive locations starting at argv0 and going up to just before argv1:

FilledSmallSquareMLOpenArgv() is not sensitive to the case of argument names.

FilledSmallSquareMLOpenArgv() ignores argument names that it does not recognize.

FilledSmallSquareMLOpenArgv() is called automatically by the MLMain() function created by mprep and mcc.

FilledSmallSquare With a main program main(int argc, char *argv[]) typical usage is MLOpenArgv(env, argv, argv+argc, errno).

FilledSmallSquare Avoiding an explicit argc argument allows MLOpenArgv() to work independent of the size of an int.

FilledSmallSquare On some computer systems, giving 0 for argv0 and argv1 will cause arguments to be requested interactively, typically through a dialog box.

FilledSmallSquare See The Mathematica Book: Section 2.12.14.

FilledSmallSquare See also: MLActivate, MLOpenString.

MLNextPacketMLOpenString