At 01:33 PM 4/19/00 -0700, David Norris wrote:
>It look like MSVC doesn't provide snprintf, pclose, popen, vsnprintf,
>nor strcasecmp. There appear to be equivalents for everything but
>strcasecmp. What exactly is strcasecmp?
>From the Unix man page:
strcmp() compares its arguments and returns an integer
greater than, equal to, or less than 0, according as s1 is
lexicographically greater than, equal to, or less than s2.
strncmp() makes the same comparison but compares at most n
characters. Two additional routines strcasecmp() and
strncasecmp() compare the strings and ignore differences in
case. These routines assume the ASCII character set when
equating lower and upper case characters.
strcmp() and strncmp() use native character comparison,
which is signed on the Sun, but may be unsigned on other
machines. Thus the sign of the value returned when one of
the characters has its high-order bit set is
implementation-dependent.
strcasecmp() and strncasecmp() use native character com-
parison as above and assume the ASCII character set.
Received on Wed Apr 19 17:18:20 2000