Re: embedded questions!!!
- From: Jonathan Kirwan <jkirwan@xxxxxxxxxxxxxx>
- Date: Fri, 13 Jan 2006 21:12:05 GMT
On Fri, 13 Jan 2006 15:09:26 -0600, Dave Hansen <iddw@xxxxxxxxxxx>
wrote:
>My copy of the standard is in a box somewhere, but H&S5, p33, about
>3/4 way down the page, says (asterisks indicate *bold* text):
>
> "*Storage for string constants.* You should never attempt to
> modify the memory that holds the characters of a string constant
> since that memory may be read-only -- that is, physically
> protected from modification."
>
>IIRC, the type of string literals is "array of (non-const, plain)
>char," but writing to them results in undefined (rather than
>implementation-defined) behavior. You might check with the denizens
>of comp.std.c to be sure...
I think that settles it. Thanks, Dave. And it makes sense, too.
Which is a good thing.
Jon
.
- Follow-Ups:
- Re: embedded questions!!!
- From: Spehro Pefhany
- Re: embedded questions!!!
- References:
- Re: embedded questions!!!
- From: Chuck F.
- Re: embedded questions!!!
- From: John B
- Re: embedded questions!!!
- From: Richard Henry
- Re: embedded questions!!!
- From: Dave Hansen
- Re: embedded questions!!!
- From: Jonathan Kirwan
- Re: embedded questions!!!
- From: Dave Hansen
- Re: embedded questions!!!
- From: Jonathan Kirwan
- Re: embedded questions!!!
- From: Dave Hansen
- Re: embedded questions!!!
- From: Jonathan Kirwan
- Re: embedded questions!!!
- From: Dave Hansen
- Re: embedded questions!!!
- Prev by Date: Re: embedded questions!!!
- Next by Date: Re: Need help in converting YUV to RGB using OV7620
- Previous by thread: Re: embedded questions!!!
- Next by thread: Re: embedded questions!!!
- Index(es):
Relevant Pages
|