home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / std / c / 2470 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!marlin.jcu.edu.au!coral.cs.jcu.edu.au!spuler
  3. From: spuler@coral.cs.jcu.edu.au (David Spuler)
  4. Subject: mixing prototyping and non-prototyping
  5. Message-ID: <spuler.713749345@coral.cs.jcu.edu.au>
  6. Sender: news@marlin.jcu.edu.au (USENET News System)
  7. Organization: James Cook University
  8. Date: 13 Aug 92 23:42:25 GMT
  9. Lines: 20
  10.  
  11.  
  12. What are the rules regarding mixing old-style and new-style functions in C
  13. programs?  Specifically, what mixtures must a compiler support,and which can
  14. be legally allowed to bomb?
  15.  
  16. Can a prototyped function be legally called without a prototype in scope?  
  17. My understanding was that this sort of mixing was allowed except for varargs
  18. functions, or prototyped functions with char/float/short parameters, but I
  19. was recently told I was wrong.  Could someone clear it up for me.
  20.  
  21. Can a non-prototyped function be called with a prototype in scope?
  22. I assume not.
  23.  
  24. Thanks,
  25. David Spuler
  26. --
  27. David Spuler, James Cook University of North Queensland, Australia
  28. Author of "Comprehensive C", Prentice-Hall, 1992, pp416, ISBN  0-13-156514-1
  29. INTRO TOPICS: types, operators, structures, strings, fns, ptrs, files etc etc
  30. ADVANCED TOPICS: efficiency, debugging, style, portability, large programs
  31.