Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!lll-winken!ctrsol!emory!nastar!scott From: scott@nastar.UUCP (Scott Barman) Newsgroups: comp.lang.c Subject: ANSI C Prototyping Question Message-ID: <697@nastar.UUCP> Date: 27 Nov 89 23:14:19 GMT Reply-To: scott@nastar.UUCP (Scott Barman) Organization: Digital Transmission Systems (NAS Development Project), Duluth, GA Lines: 33 (I hope I word this correctly :-) Does ANSI C require a prototype for every function used within a file? For example, if in main.c I know I can do (assuming all the #includes are entered first): void intrhandlr(sig) { ... code ... } void main(void) { ... code ... signal(SIGINT,intrhandlr); ... more code ... junk(x); } And junk is in another file (e.g. junk.c). Do I have to include the line extern void junk(int x); in the main.c file? I'm sure this has been debated on the net before--along with its "religious" implications. Please email me the reply to keep net traffic down to a dull roar! Thanks!!!! -- scott barman {gatech, emory}!nastar!scott