Re: sorting std::vector<string> ignoring case



Doug Harrison [MVP] wrote:
On Wed, 09 May 2007 09:21:26 -0300, Darko Miletic
<darko.miletic@xxxxxxxxxxx> wrote:

stricmp is POSIX function and exists on any decent C RTL library.

I'm not aware that it's defined by POSIX. It's been a long time, but ISTR
GNU C defining strcasecmp and seeing stricmp #defined to it.


Indeed you are right. POSIX defines strcasecmp which is complete equivalent to the stricmp function.

http://www.opengroup.org/pubs/online/7908799/xsh/strcasecmp.html

.


Loading