[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Passing a string variable to lcd_puts
From: |
Sean D'Epagnier |
Subject: |
Re: [avr-gcc-list] Passing a string variable to lcd_puts |
Date: |
Fri, 27 Mar 2009 14:03:03 -0600 |
On 3/27/09, David VanHorn <address@hidden> wrote:
> I was originally declaring my variable passed to lcd_puts as
>
> signed char LCD_String[LCD_Line_Len + 1]
>
> This, after discovering to my surprise that lcd_puts wants signed chars.
>
> Recently, I've converted to the portable typedefs as
>
> unit8_t and int8_t
>
> Now, whichever of those I use, I get a warning:
> warning: pointer targets in passing argument 1 of 'lcd_puts' differ in
> signedness
>
> According to stdint.h, int8_t is supposed to be signed, which I understand
> to be the same as char.
>
In C there are 3 char types. "char" "signed char" "unsigned char" so
maybe "char" isn't signed?
Sean
- [avr-gcc-list] Passing a string variable to lcd_puts, David VanHorn, 2009/03/27
- Re: [avr-gcc-list] Passing a string variable to lcd_puts,
Sean D'Epagnier <=
- Re: [avr-gcc-list] Passing a string variable to lcd_puts, Preston Wilson, 2009/03/27
- [avr-gcc-list] Re: Passing a string variable to lcd_puts, David Brown, 2009/03/28
- Re: [avr-gcc-list] Re: Passing a string variable to lcd_puts, Joerg Wunsch, 2009/03/28
- RE: [avr-gcc-list] Re: Passing a string variable to lcd_puts, Dave Hansen, 2009/03/30
- Re: [avr-gcc-list] Re: Passing a string variable to lcd_puts, Joerg Wunsch, 2009/03/30
- Re: [avr-gcc-list] Re: Passing a string variable to lcd_puts, David VanHorn, 2009/03/30