_strnicmp, _wcsnicmp, _mbsnicmp
vs.
strncmp, wcsncmp, _mbsncmp
What're the purposes of having both? What's the meaning of underscore for C
Run-Time Library functions?
Thanks in advance!
Notice the 'i'? IIRC that means that the whole thing works case-insensitive.
> What's the meaning of underscore for C Run-Time Library functions?
Dunno, I haven't observed any pattern with these.
Uli
You should read documentation more carefully. Here's quiote
from strncmp description:
-------
The strncmp function lexicographically compares, at most,
the first `count' characters in string1 and string2 and
returns a value indicating the relationship between the
substrings. strncmp is a case-sensitive version of
_strnicmp. wcsncmp and _mbsncmp are case-sensitive versions
of _wcsnicmp and _mbsnicmp.
-------
> What's the meaning
> of underscore for C Run-Time Library functions?
"ANSI C Compliance"
http://msdn2.microsoft.com/en-us/library/45aft37a.aspx