Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.UUCP (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: How Does 'C' Store Strings ? Message-ID: <1288@virtech.UUCP> Date: 17 Oct 89 23:08:16 GMT References: <2141@avsd.UUCP> <2157@avsd.UUCP> <914@sdrc.UUCP> Organization: Virtual Technologies Inc Lines: 16 In article <914@sdrc.UUCP>, mustard@sdrc.UUCP (Sandy Mustard) writes: > You may also want to use > > static const char vers..... > ^^^^^ > This may help avoid the redundant string elimination. The const should be a giant flag to the compiler that this data is the perfect choice for redundant data elimination since it won't be changed. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+