aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-05-22 09:10:26 +0000
committerWerner Koch <[email protected]>2002-05-22 09:10:26 +0000
commitf7742dd22fc8542f6b1d721b828854bb5d96ea33 (patch)
tree891b64fe36067a81c8ae4e880c7408f229783a19
parent* g10.c (main): Add missing LF in a info printout and made it (diff)
downloadgnupg-f7742dd22fc8542f6b1d721b828854bb5d96ea33.tar.gz
gnupg-f7742dd22fc8542f6b1d721b828854bb5d96ea33.zip
* util.h: Add strncasecmp. Removed stricmp and memicmp.
-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 --*/