Well, I don't usually modify string literals, so no problem. I think
it would be better stated that "undefined modification of string
literals invokes undefined behaviour", but this is only a quibble.
max
Quoting [EMAIL PROTECTED]:
Just because I modify a string literal does not mean I have a bug in
my program. If I do it accidentally, or modify past the end, then I
have a bug in my program.
The ANSI C standard disagrees with you.
The modification of string literals invokes undefined behaviour.
Casper
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code