| 3198 | } |
| 3199 | |
| 3200 | static int cmp_icase(char a, char b) |
| 3201 | { |
| 3202 | if (a == b) |
| 3203 | return 0; |
| 3204 | if (ignore_case) |
| 3205 | return toupper(a) - toupper(b); |
| 3206 | return a - b; |
| 3207 | } |
| 3208 | |
| 3209 | /* |
| 3210 | * Given two normalized paths (a trailing slash is ok), if subdir is |