According to Dilyan Palauzov on 1/5/2010 11:13 AM:
> My question is, if gnulib has replacement for strcasecmp () that is not
> documented, or if gnulib has no replacement at all?

The documentation was out-of-date.  (And your subject line didn't help
matters - the question is about strcasecmp, not strcasestr).  I'm pushing
this.

But meanwhile, you should consider whether you ever expect to handle
multi-byte characters, in which case strcasecmp is worthless.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
From f8b8f4f5e1c1fd8687f4eeda7055aa89e30f65a5 Mon Sep 17 00:00:00 2001
From: Eric Blake <e...@byu.net>
Date: Tue, 5 Jan 2010 20:23:07 -0700
Subject: [PATCH] strcase: document what it provides

* doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
gnulib module.
* doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
Reported by Dilyan Palauzov <dilyan.palau...@aegee.org>.

Signed-off-by: Eric Blake <e...@byu.net>
---
 ChangeLog                            |    8 ++++++++
 doc/posix-functions/strcasecmp.texi  |    4 +++-
 doc/posix-functions/strncasecmp.texi |    4 +++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2857d3d..833c872 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-01-05  Eric Blake  <e...@byu.net>
+
+       strcase: document what it provides
+       * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
+       gnulib module.
+       * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
+       Reported by Dilyan Palauzov <dilyan.palau...@aegee.org>.
+
 2010-01-05  Jim Meyering  <meyer...@redhat.com>

        maint: remove useless inclusions of "xalloc.h"
diff --git a/doc/posix-functions/strcasecmp.texi 
b/doc/posix-functions/strcasecmp.texi
index a4b87d4..f5d5edd 100644
--- a/doc/posix-functions/strcasecmp.texi
+++ b/doc/posix-functions/strcasecmp.texi
@@ -4,10 +4,12 @@ strcasecmp

 POSIX specification: 
@url{http://www.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html}

-Gnulib module: ---
+Gnulib module: strcase

 Portability problems fixed by Gnulib:
 @itemize
+...@item
+This function is missing on some platforms.
 @end itemize

 Portability problems not fixed by Gnulib:
diff --git a/doc/posix-functions/strncasecmp.texi 
b/doc/posix-functions/strncasecmp.texi
index afb0689..5d894b6 100644
--- a/doc/posix-functions/strncasecmp.texi
+++ b/doc/posix-functions/strncasecmp.texi
@@ -4,10 +4,12 @@ strncasecmp

 POSIX specification: 
@url{http://www.opengroup.org/onlinepubs/9699919799/functions/strncasecmp.html}

-Gnulib module: ---
+Gnulib module: strcase

 Portability problems fixed by Gnulib:
 @itemize
+...@item
+This function is missing on some platforms.
 @end itemize

 Portability problems not fixed by Gnulib:
-- 
1.6.4.2

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to