avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Re: avr-gcc-list Digest, Vol 23, Issue 5


From: Leo Hendrawan
Subject: [avr-gcc-list] Re: avr-gcc-list Digest, Vol 23, Issue 5
Date: Mon, 6 Dec 2004 10:12:06 +0000 (GMT)

>
> Your problem could be that you've allocated only three bytes for lbuf and
> when atoi() has a three digit number to convert it's going to produce a four
> byte string, including the terminating zero.  If you're using the simulator
> you should be able to see this happen and figure out what gets stomped on.

Hello,

i think it doesn't have any problem with the lbuf array. because it works
even with 3 bytes array, i have checked it using the avr studio simulator.
Mr. Husni was tight, the problem is the variable type, it's a newbee fault
:D  forget to include the static variable type :D

btw sorry for the junk email, i send an email to Mr. Husni with Indonesian
language andd forgot to clear the CC column (which direct it to the avr
gcc milist :D

best regards,

>
> Graham.
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]