![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
So no one caught my error in the C Language explanation of what I am looking to do? Hmmmm struct recdata classinfo[8] = {{ 0x01, "A" }, { 0x01, "B" }, { 0x01, "C" }, { 0x02, "A" }, { 0x02, "B" }, { 0x02, "C" }, { 0x03, "A" }, { 0x03, "B" }}; is INCORRECT and it SHOULD BE ... struct recdata classinfo[8] = {{ 0x01, 'A' }, { 0x01, 'B' }, { 0x01, 'C' }, { 0x02, 'A' }, { 0x02, 'B' }, { 0x02, 'C' }, { 0x03, 'A' }, { 0x03, 'B' }}; notice the single quotes (') instead of the double quotes (") because the second field in the structure is defined as a single CHAR (1 byte) and not an array of CHARs (aka STRING). That'll teach me to type these posts way after midnight here on the EastCoast of USA. Thanks, again to all those who responded. Regards, SueB *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |