13 Oct
1998
13 Oct
'98
1:40 p.m.
Jo Dillon wrote:
Just a quick question - how do I get access to command-line parameters from gpc? (I.e. the equivalent of main(argc,argv)) I looked through the info documentation and couldn't find anything.
ParamCount and ParamStr(n). Note, ParamCount does not include the 0th argument (program name), unlike argc. (However, ParamStr(0) does return it.) You are using a newer GPC than 2.0, aren't you? (2.0 did not have those functions. They were added sometime in 1997.) Frank -- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan