version 1.22 | | version 1.23 |
---|
| | |
/* | | /* |
* static char *rcsid_porting_c = | | * static char *rcsid_porting_c = |
* "$Id: porting.c,v 1.22 2004/03/26 21:59:28 ryo_saeba Exp $"; | | * "$Id: porting.c,v 1.23 2004/03/26 22:41:43 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* This seems to be lacking on some system */ | | /* This seems to be lacking on some system */ |
#if !defined(HAVE_STRNCASECMP) | | #if !defined(HAVE_STRNCASECMP) |
int strncasecmp(char *s1, char *s2, int n) | | int strncasecmp(const char *s1, const char *s2, int n) |
{ | | { |
register int c1, c2; | | register int c1, c2; |
| | |
| | |
#endif | | #endif |
| | |
#if !defined(HAVE_STRCASECMP) | | #if !defined(HAVE_STRCASECMP) |
int strcasecmp(char *s1, char*s2) | | int strcasecmp(const char *s1, const char*s2) |
{ | | { |
register int c1, c2; | | register int c1, c2; |
| | |
| | |
} | | } |
#endif | | #endif |
| | |
char *strcasestr_local(const char *s, char *find) | | char *strcasestr_local(const char *s, const char *find) |
{ | | { |
char c, sc; | | char c, sc; |
size_t len; | | size_t len; |