/* COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or */
/* code or tables extracted from it, as desired without restriction. */
/* Modified by Fox: no more length parameter, always does the whole string */
-unsigned long crc32(const char *s) {
+unsigned long irc_crc32(const char *s) {
const char *cp;
unsigned long crc32val;
}
/* Case insensitive version of the above */
-unsigned long crc32i(const char *s) {
+unsigned long irc_crc32i(const char *s) {
const char *cp;
unsigned long crc32val;
if (!ch)
return 0; /* mask ends with '*', we got it */
ch = ToLower(ch);
- while (ToLower(*s++) != ch)
+ do {
if (!*s)
return 1;
+ } while (ToLower(*s++) != ch);
bs = s; /* Next try start from here */
/* Check the rest of the "chunk" */