diff options
-rw-r--r-- | common/sys/string.c | 2 | ||||
-rw-r--r-- | include/cmsys.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/sys/string.c b/common/sys/string.c index 02c5eb98..6f738939 100644 --- a/common/sys/string.c +++ b/common/sys/string.c @@ -348,7 +348,7 @@ int DBCS_Status(const char *dbcstr, int pos) /** * DBCS_strcasestr(pool, ptr): 在字串 pool 中尋找 ptr (只忽略英文大小寫) */ -const char * +char * DBCS_strcasestr(const char* pool, const char *ptr) { int i = 0, i2 = 0, found = 0, diff --git a/include/cmsys.h b/include/cmsys.h index 05454274..7dfd6e02 100644 --- a/include/cmsys.h +++ b/include/cmsys.h @@ -101,9 +101,9 @@ extern int is_number(const char *p); extern char * qp_encode (char *s, size_t slen, const char *d, const char *tocode); extern unsigned StringHash(const char *s); /* DBCS utilities */ -extern int DBCS_RemoveIntrEscape(unsigned char *buf, int *len); -extern int DBCS_Status(const char *dbcstr, int pos); -extern const char* DBCS_strcasestr(const char* pool, const char *ptr); +extern int DBCS_RemoveIntrEscape(unsigned char *buf, int *len); +extern int DBCS_Status(const char *dbcstr, int pos); +extern char * DBCS_strcasestr(const char* pool, const char *ptr); /* time.c */ extern int is_leap_year(int year); |