home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!sgiblab!sgigate!odin!fido!shankar
- From: shankar@sgi.com (Shankar Unni)
- Newsgroups: comp.sys.sgi
- Subject: Re: Does an Indigo make read-only text segments?
- Date: 25 Jan 1993 21:50:28 GMT
- Organization: Silicon Graphics, Inc.
- Lines: 16
- Message-ID: <1k1nb4INN2bc@fido.asd.sgi.com>
- References: <1k1kqrINNs19@fido.asd.sgi.com>
- NNTP-Posting-Host: boris.wpd.sgi.com
- X-Newsreader: Tin 1.1 PL5
-
- Shankar Unni (shankar@sgi.com) wrote:
-
- > Stephen Samuel (samuel@cs.ubc.ca) wrote:
- > > char *astring="a constant string";
- >
- > This is a direct violation of ANSI C right there.
-
- Sorry. I just got rapped figuratively on the knuckles for making this wild
- statement.
-
- Character string literals are of type "char *". *However*, any attempts to
- modify their contents are, according to the standard, likely to cause
- "undefined behavior" in the program. So that is covered there..
- --
- Shankar Unni E-Mail: shankar@sgi.com
- Silicon Graphics Inc. Phone: +1-415-390-2072
-