Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!dg!fs06!pds From: pds@lemming.webo.dg.com (Paul D. Smith) Newsgroups: comp.lang.c Subject: Re: Forward declaration (was Re: Novice question.) Message-ID: Date: 19 Nov 90 14:56:53 GMT References: <336@brat.UUCP> <3838@vela.acs.oakland.edu> <1990Nov14.010511.7241@ux1.cso.uiuc.edu> <1990Nov14.143802.23021@noose.ecn.purdue.edu> <427.2742a06f@wsuiar.uucp> Sender: root@dg.dg.com Organization: NSDD/ONAD, Data General Corp., Westboro, MA Lines: 18 In-reply-to: mwjester@wsuiar.uucp's message of 15 Nov 90 19:04:31 GMT [] I'm not sure what compiler/environment you're using, but you will [] often find that a function used in main() is assumed to return type [] int unless the compiler has reason to believe otherwise. In fact, *every* C compiler ever written according to any C dialect from K&R I on will think any function used anywhere returns type `int' _unless_ the compiler has reason to believe (you tell it) otherwise. (If it doesn't it's seriously broken ...) -- paul ----- ------------------------------------------------------------------ | Paul D. Smith | pds@lemming.webo.dg.com | | Data General Corp. | | | Network Services Development | "Pretty Damn S..." | | Open Network Applications Department | | ------------------------------------------------------------------