??? 05/20/04 08:23 Read: times |
#70737 - Not really... Responding to: ???'s previous message |
Bartosz Wucke said:
#define string {0x38,0x30,0x35,0x32,0x10,0x13,0x00}
is in most cases (if not all) equivalent to "8052rn" plus null termination (manually inserted). No, it isn't. The above could be used as an initialiser in a variable definition; eg, char my_string = string;but not in place of a string elsewhere; eg, printf( string ); // WON'T WORK! That's why I initially asked Jez how he intended using the definition - as you can see, it makes a difference! |
Topic | Author | Date |
Bit string definitions | 01/01/70 00:00 | |
Why? | 01/01/70 00:00 | |
RE: Why? | 01/01/70 00:00 | |
RE: Why? | 01/01/70 00:00 | |
RE: Why? | 01/01/70 00:00 | |
RE: Why? | 01/01/70 00:00 | |
Umm... | 01/01/70 00:00 | |
RE: mixed chars | 01/01/70 00:00 | |
RE: Bit string definitions | 01/01/70 00:00 | |
RE: Bit string definitions | 01/01/70 00:00 | |
RE: Bit string definitions | 01/01/70 00:00 | |
RE: Bit string definitions | 01/01/70 00:00 | |
RE: Bit string definitions | 01/01/70 00:00 | |
RE: Bit string definitions | 01/01/70 00:00 | |
Not really... | 01/01/70 00:00 | |
RE: Not really...![]() | 01/01/70 00:00 |