| 330 | |
| 331 | #ifdef NEED_STRCASECMP |
| 332 | int strcasecmp(const char *s1, const char *s2) |
| 333 | { |
| 334 | register const char *cp1, *cp2; |
| 335 | int cmp = 0; |
| 336 | |
| 337 | cp1 = s1; |
| 338 | cp2 = s2; |
| 339 | if ((!cp1) || (!cp2 )) { |
| 340 | return (0); |
| 341 | } |
| 342 | while(*cp1 && *cp2) |
| 343 | { |
| 344 | if((cmp = (toupper(*cp1) - toupper(*cp2))) != 0) |
| 345 | return(cmp); |
| 346 | cp1++; |
| 347 | cp2++; |
| 348 | } |
| 349 | if(*cp1 || *cp2) |
| 350 | { |
| 351 | if (*cp1) |
| 352 | return(1); |
| 353 | else |
| 354 | return (-1); |
| 355 | } |
| 356 | |
| 357 | return(0); |
| 358 | } |
| 359 | #endif |
| 360 | |
| 361 | char *msLongToString(long value) { |
no outgoing calls
no test coverage detected