Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!cs.utexas.edu!usc!apple!mips!bridge2!3comvax!tymix!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: comp.sys.amiga Subject: Re: LC4.01 bug? Initalizing strings Summary: Static strings work Message-ID: <856@tardis.Tymnet.COM> Date: 9 Dec 89 11:05:00 GMT References: <8912071519.AA04620@jade.berkeley.edu> Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: BT Tymnet, San Jose, CA Lines: 17 In article <8912071519.AA04620@jade.berkeley.edu> MCARTSHA@UREGINA1.BITNET (Shan Mcarthur) writes: char *days[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; main () { } It works fine if compiled exactly as you posted. Of course it fails if days is an auto variable. That is, if the definition is put inside of a function without the "static" keyword. But you showed it defined external to the function, which works with Lattice 4.0. -- Joe Smith (408)922-6220 | SMTP: JMS@F74.TYMNET.COM or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-D21 | PDP-10 support: My car's license plate is "POPJ P," San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga speaks for me."