Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 16 lines (13 sloc) 0.445 kB
3e25c70 import dnscache 1.00
D. J. Bernstein authored
1 #include "str.h"
2
df36440 import djbdns 1.03
D. J. Bernstein authored
3 int str_diff(register const char *s,register const char *t)
3e25c70 import dnscache 1.00
D. J. Bernstein authored
4 {
5 register char x;
6
7 for (;;) {
8 x = *s; if (x != *t) break; if (!x) break; ++s; ++t;
9 x = *s; if (x != *t) break; if (!x) break; ++s; ++t;
10 x = *s; if (x != *t) break; if (!x) break; ++s; ++t;
11 x = *s; if (x != *t) break; if (!x) break; ++s; ++t;
12 }
13 return ((int)(unsigned int)(unsigned char) x)
14 - ((int)(unsigned int)(unsigned char) *t);
15 }
Something went wrong with that request. Please try again.