problems with char * return from a function

Andrew Haley aph@redhat.com
Wed Jun 18 10:14:00 GMT 2008


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.



More information about the Gcc-help mailing list