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: Andrew Haley <aph at redhat dot com>
- To: eus at member dot fsf dot org
- Cc: GCC Help Mailing List <gcc-help at gcc dot gnu dot org>
- Date: Wed, 18 Jun 2008 11:13:57 +0100
- Subject: Re: problems with char * return from a function
- References: <518704.59419.qm@web37608.mail.mud.yahoo.com>
Eus wrote:
> 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.
I have the bad feeling that he will never reply. We'll see.
Andrew.