Compare two filename (fileName1,fileName2). If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp) If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi or strcasecmp) If iCaseSenisivity = 0, case sensitivity is defaut of your operating system (like 1 on Unix, 2 on Windows) */
| 388 | |
| 389 | */ |
| 390 | extern int ZEXPORT unzStringFileNameCompare (const char* fileName1, |
| 391 | const char* fileName2, |
| 392 | int iCaseSensitivity) |
| 393 | |
| 394 | { |
| 395 | if (iCaseSensitivity==0) |
| 396 | iCaseSensitivity=CASESENSITIVITYDEFAULTVALUE; |
| 397 | |
| 398 | if (iCaseSensitivity==1) |
| 399 | return strcmp(fileName1,fileName2); |
| 400 | |
| 401 | return STRCMPCASENOSENTIVEFUNCTION(fileName1,fileName2); |
| 402 | } |
| 403 | |
| 404 | #ifndef BUFREADCOMMENT |
| 405 | #define BUFREADCOMMENT (0x400) |