[IRCServices Coding] irc_stricmp()

Ekim Engin eengin at talesoft.de
Sat Feb 2 23:43:54 PST 2002


Some older Digital-Alpha-OSF 3.1 Systems (pre bulid 483) don't have both
functions by default...

Greets

Ekim "Talesin" Engin

PGP-Fingerprint: 8627 180C 1397 34FB 6BB0  8B65 9CBF 8ED5 456C 48F9
---
Chat begins as it ends - without reason


> -----Original Message-----
> From: ircservices-coding-admin at ircservices.za.net
> [mailto:ircservices-coding-admin at ircservices.za.net] On
> Behalf Of Andrew Church
> Sent: Sunday, February 03, 2002 8:30 AM
> To: ircservices-coding at ircservices.za.net
> Subject: Re: [IRCServices Coding] irc_stricmp()
>
>
> >On Sun, 3 Feb 2002, Andrew Church wrote:
> >
> >> >    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.
> >
> >I'd also like to point out that many systems don't *have* stricmp
>
>      Well, they _do_ have strcasecmp() which is the same
> thing (and actually POSIX, I think)--I just like "stricmp"
> because (1) it's shorter and (2) "strcasecmp" sounds like
> "case-sensitive string compare" which is wrong.
>
>      Out of curiosity, are there any systems that don't have
> either function?
>
>   --Andrew Church
>     achurch at achurch.org
>     http://achurch.org/
> ------------------------------------------------------------------
> To unsubscribe or change your subscription options, visit:
> http://www.ircservices.za.net/mailman/listinfo/ircser> vices-coding
>