This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: string variables and literals
On Aug 31, 2000, sidster <patrick@mail.boxsoft.com> wrote:
> The compiler doesn't warn about this but the user should be smart enough
> to realize s/he can't modify the character array pointed to by 'p'.
> This is one of the frist things you are tought when learning C.
It seems like many people miss this class :-) :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me