s/qmail  3.3.23
Next generation secure email transport
case_diffb.c
Go to the documentation of this file.
1 #include "case.h"
2 
3 int case_diffb(register char *s,unsigned int len,register char *t)
4 {
5  register unsigned char x;
6  register unsigned char y;
7 
8  while (len > 0) {
9  --len;
10  x = *s++ - 'A';
11  if (x <= 'Z' - 'A') x += 'a'; else x += 'A';
12  y = *t++ - 'A';
13  if (y <= 'Z' - 'A') y += 'a'; else y += 'A';
14  if (x != y)
15  return ((int)(unsigned int) x) - ((int)(unsigned int) y);
16  }
17  return 0;
18 }
int case_diffb(register char *s, unsigned int len, register char *t)
Definition: case_diffb.c:3
unsigned len
Definition: matchup.c:36
unsigned x
Definition: matchup.c:36