- *p = c - 'A' + 'a';
-}
-\f/*
-** SAMEWORD -- return TRUE if the words are the same
-**
-** Ignores case.
-**
-** Parameters:
-** a, b -- the words to compare.
-**
-** Returns:
-** TRUE if a & b match exactly (modulo case)
-** FALSE otherwise.
-**
-** Side Effects:
-** none.
-*/
-
-bool
-sameword(a, b)
- register char *a, *b;
-{
- char ca, cb;
-
- do
- {
- ca = *a++;
- cb = *b++;
- if (isascii(ca) && isupper(ca))
- ca = ca - 'A' + 'a';
- if (isascii(cb) && isupper(cb))
- cb = cb - 'A' + 'a';
- } while (ca != '\0' && ca == cb);
- return (ca == cb);