diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-06-07 15:46:44 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-06-07 15:46:44 +0000 |
commit | 259d1f18be2e57a9ec6e768989571f6c8f82aed7 (patch) | |
tree | be356bce49aef38de77c76cdaa413bdf7658a46a /indep.h | |
parent | [w3m-dev 03206] Re: dict (diff) | |
download | w3m-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 'indep.h')
-rw-r--r-- | indep.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |