merge from gcc
[deliverable/binutils-gdb.git] / libiberty / strcasecmp.c
index 3aa930b696f07b877a489010d1cedf5687efaafd..4bfe65077121e45612e38bd42b8e90ffcb93315c 100644 (file)
  * is provided ``as is'' without express or implied warranty.
  */
 
+/*
+  
+@deftypefn Supplemental int strcasecmp (const char *@var{s1}, const char *@var{s2})
+
+A case-insensitive @code{strcmp}.
+
+@end deftypefn
+
+*/
+
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)strcasecmp.c       5.5 (Berkeley) 11/24/87";
 #endif /* LIBC_SCCS and not lint */
@@ -27,7 +37,7 @@ static char sccsid[] = "@(#)strcasecmp.c      5.5 (Berkeley) 11/24/87";
  * based upon ascii character sequences.
  */
 typedef unsigned char uc;
-static unsigned char charmap[] = {
+static const unsigned char charmap[] = {
        (uc)'\000',(uc)'\001',(uc)'\002',(uc)'\003',(uc)'\004',(uc)'\005',(uc)'\006',(uc)'\007',
        (uc)'\010',(uc)'\011',(uc)'\012',(uc)'\013',(uc)'\014',(uc)'\015',(uc)'\016',(uc)'\017',
        (uc)'\020',(uc)'\021',(uc)'\022',(uc)'\023',(uc)'\024',(uc)'\025',(uc)'\026',(uc)'\027',
This page took 0.02534 seconds and 4 git commands to generate.