Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucsd!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: ttyname() - question Message-ID: <10896@smoke.BRL.MIL> Date: 31 Aug 89 22:47:39 GMT References: <99@lkbpyr.UUCP> <1860001@hppad.HP.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <1860001@hppad.HP.COM> bazza@hppad.HP.COM (Carlos Bazzarella) writes: >The second one doesn't work because when the >compiler gets to main() and sees test(), he doesn't >know what to do with it, since it was not >previously defined or compiled. Therefore "test" must be the name of an function returning int, as has always been the rule in C. Later that is how it is defined, although the required return statement was omitted. Try again..