This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: string.h vs string.h usage
===
----- Original Message -----
From: "Earnie Boyd" <earnie_boyd@yahoo.com>
> egor duda wrote:
> >
> > Hi!
> >
> > Wednesday, 05 December, 2001 Pavel Tsekov ptsekov@syntrex.com wrote:
> >
> > SUSv2 mandates both <strings.h> and <string.h>
> >
>
> Wrong documentation base. You must use MSDN for MinGW.
>
> > mingw declares strcasecmp() in <string.h> while SUSv2 says it should
> > be in <strings.h>
> >
> > i believe mingw headers should be fixed/updated.
> >
>
> No, MinGW headers are correct according to MSDN. Perhaps the problem
> here is that strcasecmp doesn't exist in the MinGW world. From what I
> find, strcasecmp is a BSD addition to even POSIX. That said, MinGW
> supports ANSI functions only.
I'll change setup to use <string.h> globally then.
If need be we can roll our own strcasecmp.
Rob