[Gllug] C function strcasecmp
Mark Hemment
markhe at veritas.com
Fri Jul 20 10:57:52 UTC 2001
On Fri, 20 Jul 2001, Alain Williams wrote:
>
> I'm hacking the ftp program (inserting the ability to specify timeouts, beta testers wanted).
> It would be nice if the commands to do so could be typed in upper/lower case, thus I
> want to use the strcasecmp() function.
>
> OK: Linux has it, BSD 4.4 has it (the manual says), but how portable is it ?
> Sun, HP, AIX I suppose are the most important.
strcasecmp(3) is part of the Single Unix Spec (as is strncasecmp(3)).
Although, it is only guaranteed to work in the POSIX locale.
Just checked a SunOS 5.8 box, and it is there.
Mark
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list