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