Mail Archives: djgpp/1997/10/23/08:32:35
"sl" <back AT you> 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 <stdio.h>
#include <stdlib.h>
#include <unistd.h>
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.
- Raw text -