[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: Preston Wilson
Subject: Re: [avr-gcc-list] Passing a string variable to lcd_puts
Date: Fri, 27 Mar 2009 16:17:43 -0400
User-agent: Microsoft-Entourage/

Sorry David for the second reply to you.  I intended to reply to everyone.

"David VanHorn" wrote:

>> In C there are 3 char types.  "char" "signed char" "unsigned char"  so
>> maybe "char" isn't signed?
> Ok, so that leaves me VERY confused..
> Correct me if I'm wrong, but "signed" variables use the high bit to indicate
> negative by setting it to a 1, correct?
> So, I can only see two options, either you do, or you don't.
> Char has to equate to signed char, or unsigned char, doesn't it?

char is either signed or unsigned.  The standard leave it up to the
implementation as to which is used with an unqualified "char" type.
Traditionally under Unix environments a naked char type is signed, and that
is what gcc uses as a default.  I believe there is a compiler option that
will change this behavior, but I'm too lazy to look right now.


reply via email to

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