25 |
#include "strcase.h" |
#include "strcase.h" |
26 |
|
|
27 |
#include <ctype.h> |
#include <ctype.h> |
28 |
|
#include <limits.h> |
29 |
|
|
30 |
#if HAVE_MBRTOWC |
#if HAVE_MBRTOWC |
31 |
# include "mbuiter.h" |
# include "mbuiter.h" |
94 |
} |
} |
95 |
while (c1 == c2); |
while (c1 == c2); |
96 |
|
|
97 |
return c1 - c2; |
if (UCHAR_MAX <= INT_MAX) |
98 |
|
return c1 - c2; |
99 |
|
else |
100 |
|
/* On machines where 'char' and 'int' are types of the same size, the |
101 |
|
difference of two 'unsigned char' values - including the sign bit - |
102 |
|
doesn't fit in an 'int'. */ |
103 |
|
return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0); |
104 |
} |
} |
105 |
} |
} |