Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!kayak.cis.ohio-state.edu!thamer From: thamer@kayak.cis.ohio-state.edu (Mustafa Thamer) Newsgroups: comp.sys.atari.st Subject: Re: C question Message-ID: <74735@tut.cis.ohio-state.edu> Date: 6 Dec 89 07:15:16 GMT References: <8912050802.AA12717@ucbvax.Berkeley.EDU> <875@lzaz.ATT.COM> <74734@tut.cis.ohio-state.edu> Sender: news@tut.cis.ohio-state.edu Reply-To: Mustafa Thamer Organization: Ohio State University Computer and Information Science Lines: 20 I just tried the following code on my laser C compiler. char pattern[] = "fred"; As a global declaration it worked fine. As a local declaration (in main) it wouldn't compile unless I put the word "static" in front of it. Then it worked fine. When declared as a static, of course it worked correctly as a global or a local. Apparently that is the way to do it as was said in a previous message. Case Closed. Mustafa Thamer -=- "Two days ago I saw a vehicle that'd haul that tanker. You wanna get out of here; you talk to me."