From: Michael Bukin Newsgroups: comp.os.msdos.djgpp Subject: Re: "/?" bug, please email me the answer Date: 21 Oct 1997 08:44:16 +0600 Organization: Budker Institute of Nuclear Physics Lines: 35 Message-ID: References: NNTP-Posting-Host: aster.inp.nsk.su Cc: sl AT usemail DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "sl" writes: > Hello, > > How do I overcome the "/?" (as a parameter) bug in DJGPP? Please mail > the answer to "sl AT usemail DOT com". Thank you, If your question was about getopt, then you can see actual option in optopt: #include #include #include int main (int argc, char* argv[]) { int opt; while ((opt = getopt (argc, argv, "abc?")) != EOF) { switch (opt) { case '?': if (optopt == '?') { /* Do something. */ } break; } } } If the question was not about getopt, when what is this bug exactly? P.S. If the question was about getting help on DJGPP tools, then lots of GNU programs understand `--help' option and in DJGPP/INFO directory there should be a lot of documentation, view it with info, or ASCII viewer.