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

[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




reply via email to

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