Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1b2247106e
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (38 sloc) 0.721 kb
#include "byte.h"
int
byte_diff (register char *s, register unsigned int n, register char *t)
{
for (;;)
{
if (!n)
return 0;
if (*s != *t)
break;
++s;
++t;
--n;
if (!n)
return 0;
if (*s != *t)
break;
++s;
++t;
--n;
if (!n)
return 0;
if (*s != *t)
break;
++s;
++t;
--n;
if (!n)
return 0;
if (*s != *t)
break;
++s;
++t;
--n;
}
return ((int)(unsigned int)(unsigned char) *s)
- ((int)(unsigned int)(unsigned char) *t);
}
Jump to Line
Something went wrong with that request. Please try again.