for (; rev_start >= haystack; rev_start--) {
const char *r, *q;
- for (r = rev_start, q = needle ; *q == *r && *q != '\0'; r++, q++)
+ for (r = rev_start, q = needle; *q == *r && *q != '\0'; r++, q++)
;
if (*q == '\0')
return rev_start;
for (; rev_start >= haystack; rev_start--) {
const char *r = rev_start, *q = needle;
- for (; (tolower(*q) == tolower(*r)) && (*q != '\0') ; r++, q++)
+ for (; tolower(*q) == tolower(*r) && *q != '\0'; r++, q++)
;
if (*q == '\0')
return rev_start;