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