Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!gwyn@Brl-Vld.ARPA From: gwyn@Brl-Vld.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: String help! Message-ID: <8979@brl-tgr.ARPA> Date: Wed, 6-Mar-85 09:56:34 EST Article-I.D.: brl-tgr.8979 Posted: Wed Mar 6 09:56:34 1985 Date-Received: Fri, 8-Mar-85 02:57:21 EST Sender: news@brl-tgr.ARPA Lines: 9 The latest draft proposed ANSI standard for C supports a "const" type-modifier, to flag data that may not be modified. String literals are (const char) arrays and may not be modified. It is possible to initialize a non-const (char) array with a string if one wants to be able to modify it at run-time. One significant advantage of (const char) strings is that they are ROMable. Another is that storage for identical strings can be shared if the compiler/loader is sufficiently clever.