Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hubcap!ncrcae!ncr-sd!se-sd!rns From: rns@se-sd.sandiego.NCR.COM (Rick Schubert) Newsgroups: comp.lang.c Subject: Re: VMS pointer problems continue. Message-ID: <1499@se-sd.sandiego.NCR.COM> Date: 28 Mar 88 15:37:24 GMT References: <12602@brl-adm.ARPA> <812@cresswell.quintus.UUCP> <1494@se-sd.sandiego.NCR.COM> <1223@PT.CS.CMU.EDU> Reply-To: rns@se-sd.sandiego.NCR.COM (Rick Schubert) Organization: NCR Corp. Systems Engineering, San Diego Lines: 20 Summary: A retraction In article <1223@PT.CS.CMU.EDU> jgm@K.GP.CS.CMU.EDU (John Myers) writes: >In article <1494@se-sd.sandiego.NCR.COM> rns@se-sd.sandiego.NCR.COM (Rick Schubert) writes: ^ That's me >: ... >: The string >:>pointed to by b ("Arf!") should be considered local to wr(); the compiler >:>is free to allocate it on the stack [...] > >Wrong. String constants have storage class "static" according to K&R >Appendix A, section 2.5. Please check your references before you post. Sorry -- You and several people who sent me mail on this are right, and I was wrong. I didn't check K&R or the current ANSI Draft (Section 3.1.4) before posting. I cancelled my posting after receiving the first mail, and I was hoping my erroneous posting wouldn't go too far. I'll try to be more careful next time. >_.John G. Myers Internet: John.Myers@cs.cmu.edu -- Rick Schubert (I'm not always wrong)