Sujet : Re: relearning C: why does an in-place change to a char* segfault?
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 14. Aug 2024, 01:41:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86cymcszpv.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Keith Thompson <Keith.S.Thompson+
u@gmail.com> writes:
In 20/20 hindsight, my personal opinion is that it would have been
better to make string literals const in C89/C90.
Fortunately wiser heads prevailed.