Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 380 Bytes
#include "case.h"
int case_startb(const char *s,unsigned int len,const char *t)
{
register unsigned char x;
register unsigned char y;
for (;;) {
y = *t++ - 'A';
if (y <= 'Z' - 'A') y += 'a'; else y += 'A';
if (!y) return 1;
if (!len) return 0;
--len;
x = *s++ - 'A';
if (x <= 'Z' - 'A') x += 'a'; else x += 'A';
if (x != y) return 0;
}
}
Something went wrong with that request. Please try again.