Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!motcid!yedinak From: yedinak@motcid.UUCP (Mark A. Yedinak) Newsgroups: comp.lang.c Subject: Re: Novice question. Message-ID: <5329@catfish11.UUCP> Date: 16 Nov 90 16:19:18 GMT References: <336@brat.UUCP> <3838@vela.acs.oakland.edu> <1990Nov14.010511.7241@ux1.cso.uiuc.edu> <1990Nov14.143802.23021@noose.ecn.purdue.edu> Organization: MOTOROLA INC. General Systems Sector Lines: 22 longshot@monkey.ecn.purdue.edu (The Knight Guard) writes: :> "extern" means that the variable is global, and was declared in a :>separate .c file. If your program occupies only 1 file, you will never :>use this. :> :>John Gordon : Not true here... Our cc seems to require that all functions/procedures : be defined before the main block. The way around this is to extern all : functions before main... Dunno if this is just our compiler, anyone else : seen this? Any ideas of why? Sounds like Pascal to me. :) Seriously though, this sounds like this is just your compiler. I have never seen this on any of the half dozen or so compilers I have used. -- Mark A. Yedinak - uunet!motcid!yedinak * "Don't take life too Motorola - General Systems Sector * seriously, you will 3205 Wilke Road, Arlington Heights, IL 60004 * never get out of it 708-632-2874 (I said it, not the big M) * ALIVE!"