Mail Archives: djgpp/1998/10/28/12:35:19.1
On Tue, 27 Oct 1998 16:23:07 -0000, "Graeme Fenwick"
<gfenwick AT BYESPAMprimex DOT co DOT uk> wrote:
>Put simply, I've written (part of a) program to parse command line
>arguments, and it's running into trouble when I try to read the arguments
>"/?", "/??", "/???" and so on. For some reason, the argument is sometimes
>being converted into what seems like a directory name(!), so the program
>itself isn't reading the argument as "/?".
"It's not a bug, it's an undocumented feature" :)
No, really, it's a feature and it's documented. DJGPP does Unix-style
wildcard expansion of the command line automatically. If you don't
want this behaviour, simply define a __crt0_glob_function() which does
nothing but return NULL in one of your source files. It also reduces
the executable size quite a bit. See help for _crt0_glob_function()
prototype.
- Raw text -