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

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

[avr-gcc-list] Problem with atol() and strtol()


From: Eric Fu
Subject: [avr-gcc-list] Problem with atol() and strtol()
Date: Wed, 9 Jun 2004 20:55:49 +1000

Hi,

I'm trying to convert a ASCII string from Hyper terminal to a long integer. 
Both atol() and strtol() return only 0 with any  ASCII input. However, atoi() 
always works. I can't figure out why.
I'm using WinAVR 20040404 with ATmeg16. Could any one give me an advice on that 
please.

Thanks.

Eric Fu

reply via email to

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