aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/util.h9
2 files changed, 7 insertions, 6 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 02cc439dc..b53345359 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-22 Werner Koch <[email protected]>
+
+ * util.h: Add strncasecmp. Removed stricmp and memicmp.
+
2002-05-10 Stefan Bellon <[email protected]>
* mpi.h: New function mpi_debug_alloc_like for M_DEBUG.
diff --git a/include/util.h b/include/util.h
index 908f4b4e0..b49b6c9c6 100644
--- a/include/util.h
+++ b/include/util.h
@@ -205,9 +205,6 @@ int ascii_tolower (int c);
int ascii_strcasecmp( const char *a, const char *b );
int ascii_memcasecmp( const char *a, const char *b, size_t n );
-#ifndef HAVE_MEMICMP
-int memicmp( const char *a, const char *b, size_t n );
-#endif
#ifndef HAVE_STPCPY
char *stpcpy(char *a,const char *b);
#endif
@@ -220,15 +217,15 @@ char *strsep (char **stringp, const char *delim);
#ifndef HAVE_STRCASECMP
int strcasecmp( const char *, const char *b);
#endif
+#ifndef HAVE_STRNCASECMP
+int strncasecmp (const char *, const char *b, size_t n);
+#endif
#ifndef HAVE_STRTOUL
#define strtoul(a,b,c) ((unsigned long)strtol((a),(b),(c)))
#endif
#ifndef HAVE_MEMMOVE
#define memmove(d, s, n) bcopy((s), (d), (n))
#endif
-#ifndef HAVE_STRICMP
- #define stricmp(a,b) strcasecmp( (a), (b) )
-#endif
#if defined (__MINGW32__) || defined (__CYGWIN32__)
/*-- w32reg.c --*/