home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / 19102 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  989 b 

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