Re: [avr-gcc-list] Passing a string variable to lcd_puts

2009-03-27 Thread David VanHorn
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

Re: [avr-gcc-list] Passing a string variable to lcd_puts

2009-03-27 Thread David Kelly
On Fri, Mar 27, 2009 at 04:06:21PM -0400, 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.. As you should be. Plain old char *is* either signed or unsigned depending on your choice of

Re: [avr-gcc-list] Passing a string variable to lcd_puts

2009-03-27 Thread Preston Wilson
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

Re: [avr-gcc-list] Passing a string variable to lcd_puts

2009-03-27 Thread Graham Davies
David VanHorn wrote: Ok, so that leaves me VERY confused. Maybe it would help to think about logic levels in simulation. The three basic levels are low, high and unknown. The three variations of the char type are similar, signed, unsigned and unspecified. I think that the reason the

Re: [avr-gcc-list] Passing a string variable to lcd_puts

2009-03-27 Thread David Kelly
On Fri, Mar 27, 2009 at 04:21:15PM -0400, David VanHorn wrote: As you should be. Plain old char *is* either signed or unsigned depending on your choice of compiler. And in effort to build code that runs as expected better compilers have a compile time switch to control code generation

Re: [avr-gcc-list] Passing a string variable to lcd_puts

2009-03-27 Thread David VanHorn
On Fri, Mar 27, 2009 at 4:31 PM, Graham Davies ecros...@ecrostech.comwrote: David VanHorn wrote: Ok, so that leaves me VERY confused. Maybe it would help to think about logic levels in simulation. The three basic levels are low, high and unknown. The three variations of the char type are

Re: [avr-gcc-list] Passing a string variable to lcd_puts

2009-03-27 Thread Graham Davies
David VanHorn wrote: ... the unspecified variant looks like a disaster waiting to happen I don't disagree. And: ... using the portable types, there does not appear to be an unspecified char ... Maybe that's why they're portable. I'm not sure that's the right name for them, though. I