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) */
| 384 | |
| 385 | */ |
| 386 | extern int ZEXPORT unzStringFileNameCompare(const char* fileName1, |
| 387 | const char* fileName2, |
| 388 | int iCaseSensitivity) |
| 389 | |
| 390 | { |
| 391 | if (iCaseSensitivity == 0) |
| 392 | iCaseSensitivity = CASESENSITIVITYDEFAULTVALUE; |
| 393 | |
| 394 | if (iCaseSensitivity == 1) |
| 395 | return strcmp(fileName1, fileName2); |
| 396 | |
| 397 | return STRCMPCASENOSENTIVEFUNCTION(fileName1, fileName2); |
| 398 | } |
| 399 | |
| 400 | #ifndef BUFREADCOMMENT |
| 401 | #define BUFREADCOMMENT (0x400) |