aboutsummaryrefslogtreecommitdiffstats
path: root/indep.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-06-07 15:46:44 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-06-07 15:46:44 +0000
commit259d1f18be2e57a9ec6e768989571f6c8f82aed7 (patch)
treebe356bce49aef38de77c76cdaa413bdf7658a46a /indep.h
parent[w3m-dev 03206] Re: dict (diff)
downloadw3m-259d1f18be2e57a9ec6e768989571f6c8f82aed7.tar.gz
w3m-259d1f18be2e57a9ec6e768989571f6c8f82aed7.zip
[w3m-dev 03207] strchr(), strcasecmp(), and strncasecmp()
* etc.c (strchr): removed (strcasecmp): removed (strncasecmp): removed * indep.c (strchr): moved, cast (strcasecmp): moved, fix the case that s1 = "" (strncasecmp): moved, fix the case that s1 is shorter than s2 * indep.h (strchr): added (strcasecmp): added (strncasecmp): added From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to '')
-rw-r--r--indep.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/indep.h b/indep.h
index d701d5c..5965d06 100644
--- a/indep.h
+++ b/indep.h
@@ -1,4 +1,4 @@
-/* $Id: indep.h,v 1.7 2001/11/27 18:29:24 ukai Exp $ */
+/* $Id: indep.h,v 1.8 2002/06/07 15:46:44 ukai Exp $ */
#ifndef INDEP_H
#define INDEP_H
#include "gc.h"
@@ -24,6 +24,13 @@ extern int strCmp(const void *s1, const void *s2);
extern char *currentdir(void);
extern char *cleanupName(char *name);
extern char *expandPath(char *name);
+#ifndef HAVE_STRCHR
+extern char *strchr(const char *s, int c);
+#endif /* not HAVE_STRCHR */
+#ifndef HAVE_STRCASECMP
+extern int strcasecmp(const char *s1, const char *s2);
+extern int strncasecmp(const char *s1, const char *s2, size_t n);
+#endif /* not HAVE_STRCASECMP */
#ifndef HAVE_STRCASESTR
extern char *strcasestr(const char *s1, const char *s2);
#endif