View previous topic :: View next topic |
Author |
Message |
iw2nzm Guest
|
Single char in strings arrays |
Posted: Sun Dec 31, 2006 2:40 am |
|
|
Hi to all,
I have a string array for LCD messages:
Code: |
char const line1[5][17] = {
" abcdef ",
" abcde ",
" abcdef ghijkl ",
" abcde ",
" abcde "
};
|
It works fine if I want to display the whole string.
But I would like to display a single character from a string.
In other words, I have two indexes: i for the string ID (0 to 4) and j for the character position (0 to 15, the last one is the terminator).
How can I extract it?
When I access to the string as line1[i][j] I get garbage characters
Bye
Marco / iw2nzm |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
iw2nzmV Guest
|
|
Posted: Sun Dec 31, 2006 5:06 am |
|
|
Thank you, now all works fine!!!
Marco / iw2nzm |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|