OpenersNotesSection(Spacer1)Details

(NonWLLink[MLInitialize(), paclet:ref/c/MLInitialize]) must be called before MLOpenArgv().

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

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

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

MLOpenArgv() is called automatically by the (NonWLLink[MLMain(), paclet:ref/c/MLMain]) function created by (RefLink[mprep, paclet:ref/program/mprep]) and (RefLink[mcc, paclet:ref/program/mcc]).

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

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

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

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {MLActivate  ▪  MLOpenString}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Running Mathematica from within an External Program, paclet:tutorial/RunningTheWolframSystemFromWithinAnExternalProgram])}})}})