[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Comparisson with negative values
From: |
Preston Wilson |
Subject: |
Re: [avr-chat] Comparisson with negative values |
Date: |
Tue, 20 Nov 2007 10:52:59 -0500 |
User-agent: |
Microsoft-Entourage/11.3.6.070618 |
"John" wrote:
> Not using printf() or even including stdio.h
> It is the same as largedemo which comes with avr-glibc.
> Some simple functions are defined within the program.
Same issue, but different functions.
The version of largedemo that I just looked at uses itoa() to convert an
integer to a string. itoa() treats all values passed in for conversion as a
signed value, but you only get the minus sign for base 10 conversions.
utoa() is the unsigned version of itoa(), and similarly utoa() will convert
all values passed in to an unsigned value.
-Preston