🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #6589

Re: C question

#6589
From: Mustafa Thamer
Date: Wed, 06 Dec 1989 07:15
20 lines
1144 bytes
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."
Technical Details
Message-ID: <74735@tut.cis.ohio-state.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!kayak.cis.ohio-state.edu!thamer
References: <8912050802.AA12717@ucbvax.Berkeley.EDU> <875@lzaz.ATT.COM> <74734@tut.cis.ohio-state.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 <thamer@cis.ohio-state.edu>
Organization: Ohio State University Computer and Information Science
Lines: 20