|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflstr.h"
int
lexcmp (
const char *string1,
const char *string2)
Performs an unsigned comparison of two strings without regard to the case of any letters in the strings. Returns a value that is
| < 0 | if string1 is less than string2 |
| == 0 | if string1 is equal to string2 |
| > 0 | if string1 is greater than string2 |
{
int cmp;
ASSERT (string1);
ASSERT (string2);
do
{
cmp = (byte) tolower (*string1) - (byte) tolower (*string2);
}
while (*string1++ && *string2++ && cmp == 0);
return (cmp);
}
| | << | < | > | >> |
|