strings no longer writable?
Doug Gwyn
gwyn at smoke.brl.mil
Tue Oct 30 09:41:42 AEST 1990
In article <1990Oct29.174410.28498 at batcomputer.tn.cornell.edu> lijewski at theory.tn.cornell.edu (Mike Lijewski) writes:
>My understanding is that strings are no longer writable.
They never have been guaranteed to be writable.
>Is a conforming implementation required to issue a warning, an error, or
>what?
The standard says, "If the program attempts to modify a string literal of
either form, the behavior is undefined." A diagnostic message is not
required; in fact, some implementations may support this operation as a
conforming extension.
More information about the Comp.std.c
mailing list