Mail Archives: opendos/1997/02/17/04:23:01
On Feb 02, 1997 at 12:07:17AM +0000, Ian 'DrDebug' Day wrote:
> >Well, programmers have been bouncing off that wall for years, which is why
> >many fine well written programs allow the use of @include files.
>
> Did I miss something there?
>
> What have #include files got to do with command line length?
He said @include, not #include. You know. You write the command line
to a rext file (perhaps a list of files to work on) and then invoke
your app/utility like:
C:\>foobar @filelist
Then the programmer sees the '@' at the start of the option and reads
the command line from the file.
If you use DJGPP to compile your apps, the nice thing is that it does
the above for you, so, you find that argc/argv are populated for you
before main() gets called (and it will glob filenames for you as
well). You can turn this off if you want.
--
Take a look in Hagbard's World: | w3ng - The WWW Norton Guide reader.
http://www.acemake.com/hagbard | ng2html - The NG to HTML converter.
Also available in the UK: | eg - Norton Guide reader for OS/2.
http://www.hagbard.demon.co.uk | dgscan - DGROUP scanner for Clipper.
- Raw text -