Re: Querry aoubt struct including character strings pointer
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Tue, 21 Oct 2008 08:12:23 +0000
Nick Keighley said:
<snip>
You cannot modify string constants.
s/cannot/must not/
This, as Nick already knows, is one of those situations where the C
language places a demand on the programmer rather than on the
implementation. Complying with that demand is, therefore, a matter of
self-discipline rather than implementation-imposed discipline. When
programmers ignore such demands, very often they get away with it. But
sometimes, they don't.
It's almost like driving on the wrong side of the road. If you live in a
relatively traffic-free area, you can actually drive on the wrong side of
the road for quite extended periods - but you only have yourself to blame
when you wrap yourself round a Mini Metro, with quite possibly fatal
consequences.
(It's not *quite* the same, because the police will enforce the law if they
happen to spot you. If you live anywhere near me, the chances of that are
pretty low, since the bobbies around here seem utterly incapable of
distinguishing their seating arrangements from their arm joints.
Nevertheless, the point stands.)
<snip>
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- Follow-Ups:
- Re: Querry aoubt struct including character strings pointer
- From: Joachim Schmitz
- Re: Querry aoubt struct including character strings pointer
- References:
- Querry aoubt struct including character strings pointer
- From: bowlderyu
- Re: Querry aoubt struct including character strings pointer
- From: Ian Collins
- Re: Querry aoubt struct including character strings pointer
- From: bowlderyu
- Re: Querry aoubt struct including character strings pointer
- From: Nick Keighley
- Querry aoubt struct including character strings pointer
- Prev by Date: Re: Layered Open Source Software in C
- Next by Date: Re: D.E. Knuth's strlen
- Previous by thread: Re: Querry aoubt struct including character strings pointer
- Next by thread: Re: Querry aoubt struct including character strings pointer
- Index(es):
Relevant Pages
|
Loading