Rev 4268 | Rev 4280 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4268 | Rev 4279 | ||
---|---|---|---|
Line 659... | Line 659... | ||
659 | str[i - 1] = str[i]; |
659 | str[i - 1] = str[i]; |
660 | 660 | ||
661 | return true; |
661 | return true; |
662 | } |
662 | } |
663 | 663 | ||
664 | int strncmp(const char *a, const char *b, size_t n) |
- | |
665 | { |
- | |
666 | size_t c = 0; |
- | |
667 | - | ||
668 | while (c < n && a[c] && b[c] && (!(a[c] - b[c]))) |
- | |
669 | c++; |
- | |
670 | - | ||
671 | return ( c < n ? a[c] - b[c] : 0); |
- | |
672 | - | ||
673 | } |
- | |
674 | - | ||
675 | int stricmp(const char *a, const char *b) |
664 | int stricmp(const char *a, const char *b) |
676 | { |
665 | { |
677 | int c = 0; |
666 | int c = 0; |
678 | 667 | ||
679 | while (a[c] && b[c] && (!(tolower(a[c]) - tolower(b[c])))) |
668 | while (a[c] && b[c] && (!(tolower(a[c]) - tolower(b[c])))) |