This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems with char * return from a function
- From: Eus <eus at member dot fsf dot org>
- To: Andrew Haley <aph at redhat dot com>
- Cc: GCC Help Mailing List <gcc-help at gcc dot gnu dot org>
- Date: Mon, 16 Jun 2008 05:56:46 -0700 (PDT)
- Subject: Re: problems with char * return from a function
- Reply-to: eus at member dot fsf dot org
Hi Ho!
--- On Mon, 6/16/08, Andrew Haley <aph@redhat.com> wrote:
> That's a wrong answer: strcpy() copies the zero
> terminator as well.
Ah, you are right!
Thank you for reminding me :)
> The problem is probably with the declaration of a.
>
> To Sundara: we need a *complete* program that shows this
> problem
Well, let's wait and see.
> Andrew.
Best regards,
Eus