[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/11.4.0.080122 |
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.
-Preston
- [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, 2009/03/27
- Re: [avr-gcc-list] Passing a string variable to lcd_puts,
Preston Wilson <=
- [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
- RE: [avr-gcc-list] Re: Passing a string variable to lcd_puts, Larry Barello, 2009/03/30
- Re: [avr-gcc-list] Re: Passing a string variable to lcd_puts, David VanHorn, 2009/03/31
- 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, Dave Hansen, 2009/03/30
- [avr-gcc-list] Re: Passing a string variable to lcd_puts, David Brown, 2009/03/30