home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / programm / 2421 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.4 KB

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