Article View: comp.std.c
Article #1149mixing prototyping and non-prototyping
From: David Spuler
Date: Thu, 13 Aug 1992 23:42
Date: Thu, 13 Aug 1992 23:42
20 lines
1305 bytes
1305 bytes
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
Technical Details
Message-ID:
<spuler.713749345@coral.cs.jcu.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!marlin.jcu.edu.au!coral.cs.jcu.edu.au!spulerShow Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!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