Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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
  }
 }


List of 24 messages in thread
TopicAuthorDate
multivariables comparison            01/01/70 00:00      
   RE: little problem            01/01/70 00:00      
      RE: little problem            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
         RE: multivariables comparison            01/01/70 00:00      
            RE: multivariables comparison            01/01/70 00:00      
               RE: multivariables comparison            01/01/70 00:00      
            RE: multivariables comparison            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison - Sampah            01/01/70 00:00      
         RE: multivariables comparison - Lee            01/01/70 00:00      
            RE: multivariables comparison - Lee            01/01/70 00:00      
               RE: multivariables comparison - Sampah            01/01/70 00:00      
         RE: multivariables comparison - Sampah            01/01/70 00:00      
      what does SAME mean?            01/01/70 00:00      
         RE: what does SAME mean?            01/01/70 00:00      
            RE: what does SAME mean?            01/01/70 00:00      
               RE: what does SAME mean?            01/01/70 00:00      
               RE: what does SAME mean?            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
   RE: Clear CF before SUBB            01/01/70 00:00      

Back to Subject List