From 259d1f18be2e57a9ec6e768989571f6c8f82aed7 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 7 Jun 2002 15:46:44 +0000 Subject: [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 --- indep.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'indep.h') 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 -- cgit v1.2.3