[IRCServices Coding] irc_stricmp()

Andrew Church achurch at achurch.org
Sun Feb 3 12:14:12 PST 2002


>    I've been rather curious about IRCServices' irc_stricmp function. What
>does it do that the regular stricmp() doesn't, and could it be replaced
>safely with stricmp?

     (1) stricmp() is (potentially) locale-dependent, and could conceivably
behave incorrectly in certain locales.

     (2) RFC1459-compliant ircds treat [ and {, \ and |, ] and } as
pairwise equivalent; stricmp() doesn't.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/