www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/12/11:34:16

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getopt() and ANSI?
Date: Mon, 12 Jan 1998 07:44:39 -0800
Organization: Alcyone Systems
Lines: 18
Message-ID: <34BA3A67.47630CA0@alcyone.com>
References: <3 DOT 0 DOT 16 DOT 19980112152740 DOT 3b0fb2e4 AT hem1 DOT passagen DOT se>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Peter Palotas wrote:

> Is getopt ANSI C?  If not, how would I go about to make my program
> which
> uses getopt to be ANSI compliant? Would it be a good idea, simply to
> include the GNU getopt.c and getopt.h files?

getopt is not an ANSI C call.  However, if the code inside getopt
conforms to ANSI C, then it is ANSI compliant to call it provided you've
linked it in.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                     \
                       "Life may be / the product of imperfections."
                                   / (Marclo Gleiser)

- Raw text -


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