[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] C Escape sequence.
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] C Escape sequence. |
Date: |
Tue, 13 Jun 2006 22:27:38 +0200 (MET DST) |
"justin joseph" <address@hidden> wrote:
>> const char messg[] PROGMEM= "Temp= \xdf" "C";
> should'nt the array be declared as const unsigned char
Definately not. The data type of a character is "char", the data type
of a character string literal is "const char *". For printable
characters, signedness does not matter. The standard leaves it open
whether the data type "char" is signed or unsigned (and for GCC, you
can decide yourself using -fsigned-char or -funsigned-char).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
- Re: [avr-gcc-list] C Escape sequence.,
Joerg Wunsch <=
- Message not available
- Message not available