Main Page | Namespace List | Class List | File List | Class Members | File Members | Related Pages

byte_diff.c

Go to the documentation of this file.
00001 #include "byte.h"
00002 
00003 int byte_diff(s,n,t)
00004 register char *s;
00005 register unsigned int n;
00006 register char *t;
00007 {
00008   for (;;) {
00009     if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
00010     if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
00011     if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
00012     if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
00013   }
00014   return ((int)(unsigned int)(unsigned char) *s)
00015        - ((int)(unsigned int)(unsigned char) *t);
00016 }

Generated on Mon Apr 26 09:49:22 2004 for ConstantDataStore by doxygen 1.3.6-20040222