[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: apr_strnatcasecmp vs. strcasecmp

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2006-02-17 18:59:59 CET

On Fri, 2006-02-17 at 10:42 -0500, Mark Phippard wrote:
> Thanks, the IBM compiler team essentially gave the same answer.
> Ultimately, this function is only declared in strings.h and the compiler
> issues a warning that we were missing when the prototype is not found.
> Since the C runtime has a function named strcasecmp (for EBCDIC strings)
> the linker does not have a problem.

Ugh. IBM's header files are apparently trying to be compatible with
20-year-old System V and BSD, and could use an update. It's true that
strcasecmp and strncasecmp came from BSD which at first used
<strings.h>, but it's been a while since any popular Unix system didn't
make <string.h> and <strings.h> mostly identical, and declare
strcasecmp/strncasecmp in both. (Unless you've asked for a clean
namespace for a particular standard which doesn't include those
functions.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 17 19:00:46 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.