[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>
This commit is contained in:
9
indep.h
9
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
|
||||
|
Reference in New Issue
Block a user