| ??? 05/06/03 11:31 Read: times |
#44894 - RE: multivariables comparison Responding to: ???'s previous message |
if variables are located at incrementing addresses, why not just use a ptr and compare the byte you're pointing with the next one?
in C:
unsigned char *ptr = &var1;
while (ptr++ != &var6) {
if (*ptr == *(ptr+1)) {
// do something
}
}
|



