This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with char * return from a function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]