From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bda6136a6fefc8c6 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-03-27 14:33:24 PST Path: sparky!uunet!tis.com!mjr From: mjr@tis.com (Marcus J Ranum) Newsgroups: comp.sys.dec Subject: Re: Might this be a VMS or C problem on the AXP? Date: 27 Mar 1993 22:16:15 GMT Organization: Trusted Information Systems, Inc. Message-ID: <1p2jnf$5p2@sol.TIS.COM> References: NNTP-Posting-Host: sol.tis.com >According to the ANSI spec, > "If a program attempts to modify a string literal..., the behavior > is undefined". (Section 3.1.4) Undefined means that it can do anything it likes, including "work" more or less correctly. The code is broken, but you cannot expect the system to always trap it. [My usual diatribe about C's failings, and why C code for any non-trivial applications should be developed under interpreted environments like Saber-C omitted.] mjr.