s/qmail
3.3.23
Next generation secure email transport
sqmail-3.3.23
src
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
}
case_diffb
int case_diffb(register char *s, unsigned int len, register char *t)
Definition:
case_diffb.c:3
len
unsigned len
Definition:
matchup.c:36
x
unsigned x
Definition:
matchup.c:36
case.h
Generated on Sat Jan 12 2019 23:42:27 for s/qmail by
1.8.13