- bool result;
-
- assert(a && b);
-
- while (*a && *b) {
- if (toupper(*a) != toupper(*b)) {
- result = false;
- goto end;
- }
-
- a++;
- b++;
- }
-
- /* If a and b don't have the same length, consider them unequal. */
- result = *a == *b;
-
-end:
- return result;