s/qmail  3.3.23
Next generation secure email transport
case_starts.c
Go to the documentation of this file.
1 #include "case.h"
2 
3 int case_starts(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 (!y) return 1;
14  if (x != y) return 0;
15  }
16 }
int case_starts(register char *s, register char *t)
Definition: case_starts.c:3
unsigned x
Definition: matchup.c:36