This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / The Mathematica Book / Reference Guide / Listing of C Functions in the MathLink Library  /

  • MLINKMLOpenArgv(MLENVenv,char**argv0,char**argv1,long*errno) opens a MathLink connection taking parameters from an argv array.
  • 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 MLMain() function created by mprep and 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.
  • See the Mathematica book: Section 2.12.14.
  • See also: MLActivateMLActivateMainBookLinkOldButtonDataMLActivate, MLOpenStringMLOpenStringMainBookLinkOldButtonDataMLOpenString.