[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?
From: |
Vincent Trouilliez |
Subject: |
[avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ? |
Date: |
Thu, 5 Feb 2009 05:32:51 +0100 |
Hello,
All on-line tutorials on C just do'nt seem to cover all these practical
little things I need... these tutorials aren't much help for
day to day issues with microcontroller programming I find :-/
Problem: in the strings I define, some of the characters are custom
defined (ASCII codes 0 to 7 in a text LCD module).
I have some defines like such:
#define LCD_CUSTOM_CHAR_FOO <any value from 0 to 7 and 0x80 and up>
char example[] = "Example String";
Now I need to insert the define "LCD_CUSTOM_CHAR_FOO" somewhere in
the string, and have the compiler replace it with the hex code it
stands for... how to instruct the compiler to do so ?!
TIA
Regards,
--
Vince, the devil is in the detail they say...
- [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?,
Vincent Trouilliez <=
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Daniel O'Connor, 2009/02/05
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Vincent Trouilliez, 2009/02/05
- [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, David Brown, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Chris Kuethe, 2009/02/05
- RE: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Schwichtenberg, Knut, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Chris Kuethe, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Juergen Harms, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, David Kelly, 2009/02/05
- RE: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Dave Hansen, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Vincent Trouilliez, 2009/02/05