home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!asuvax!gatech!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
- From: dave@cs.arizona.edu (Dave Schaumann)
- Newsgroups: comp.programming
- Subject: Re: ANSI C, was Re: Teaching the basics
- Message-ID: <1992Aug21.154839.2664@organpipe.uug.arizona.edu>
- Date: 21 Aug 92 15:48:39 GMT
- Sender: news@organpipe.uug.arizona.edu
- Reply-To: dave@cs.arizona.edu (Dave Schaumann)
- Organization: University of Arizona
- Lines: 21
- In-Reply-To: mhcoffin@tolstoy.uwaterloo.ca (Michael Coffin)
-
- In article <NICKEL.92Aug21010722@desaster.cs.tu-berlin.de> nickel@cs.tu-berlin.de (Juergen Nickelsen) writes:
- ]>
- ]>
- ]> `-Wmissing-prototypes'
- ]> Warn if a global function is defined without a previous prototype
- ]> declaration. This warning is issued even if the definition itself
- ]> provides a prototype. The aim is to detect global functions that
- ]> fail to be declared in header files.
- ]>
- ]> But using this is a major pain on a system without ANSI Header files.
-
- IMHO, you should do it anyway. Make your own header files with the
- appropriate prototypes if you need to. I don't know how many times the
- prototype for fprintf() has saved me from a core dump when I forgot to
- include the initial FILE * parameter...
-
- (also check out the thread on comp.lang.c about atof()... a warning of
- missing prototype would've solved that problem virtually before it started)
-
- --
- What signature?
-