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