[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Comparisson with negative values
From: |
John |
Subject: |
Re: [avr-chat] Comparisson with negative values |
Date: |
Tue, 20 Nov 2007 14:58:17 +0100 |
----- Original Message -----
From: "Rick Altherr" <address@hidden>
To: "John" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, November 20, 2007 1:59 PM
Subject: Re: [avr-chat] Comparisson with negative values
> If you are using printf(), the format string includes a description of
> the type. I would bet that you are using %d which means signed integer
> of size int. %u means unsigned integer of size int. I would need to
> check what int16_t is on avr, but if it is not int (could be short for
> example) then you would also need a length modifier. I suggest
> reading the printf() manpage.
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.
John