Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!princeton!allegra!alice!ark From: ark@alice.UUCP Newsgroups: comp.lang.c Subject: Re: Local string storage -- *guaranteed* static? Message-ID: <6947@alice.UUCP> Date: Thu, 4-Jun-87 09:42:07 EDT Article-I.D.: alice.6947 Posted: Thu Jun 4 09:42:07 1987 Date-Received: Sat, 6-Jun-87 08:30:49 EDT References: <7690@brl-adm.ARPA> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 16 In article <7690@brl-adm.ARPA>, gea@Juliet.Caltech.EDU writes: -> Someone asked whether strings in functions like -> -> func() { -> char *str = "some string"; -> ... -> return(str); -> } -> -> are static, and several people affirmed that they were, but without -> any evidence. K&R, page 181: "A string has type ``array of characters'' and storage class `static' and is initialized with the given characters."