delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/23/08:32:35

From: Michael Bukin <bukinm AT inp DOT nsk DOT su>
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: <m3wwj796nz.fsf@H-Bukin.inp.nsk.su>
References: <riaciqmxa DOT pminews AT portb47 DOT generation DOT net>
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

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019