4. System interface

We show how to get at the command line arguments. The function 'argv' returns an empty string if the argument index is out of range. argv 0 is usually the program name: for the flx_run driver its the loaded library name: the driver name and control arguments are stripped.
Start C++ section to tut/examples/tut301.flx[1 /1 ]
     1: include "std";
     2: open System;
     3: print "argc="; print argc; endl;
     4: 
     5: var i:int;
     6: for_each {i=0;} {i<argc} {++i;}
     7: {
     8:   print i; print "->"; print (argv i); endl;
     9: };
    10: 
End C++ section to tut/examples/tut301.flx[1]