Mercurial > hg > octave-lyh > gnulib-hg
changeset 587:21fe6b0a7865
Unprotoize.
[ISASCII]: Define.
[ISUPPER]: Define.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 13 Apr 1996 18:13:09 +0000 |
parents | 446854a87514 |
children | cef48d6f8ee8 |
files | lib/memcasecmp.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/memcasecmp.c +++ b/lib/memcasecmp.c @@ -5,6 +5,13 @@ #include <sys/types.h> #include <ctype.h> +#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) +#define ISASCII(c) 1 +#else +#define ISASCII(c) isascii(c) +#endif +#define ISUPPER(c) (ISASCII (c) && isupper (c)) + #if _LIBC || STDC_HEADERS # define TOLOWER(c) tolower (c) #else @@ -16,7 +23,10 @@ /* Like memcmp, but ignore differences in case. */ int -memcasecmp (const void *vs1, const void *vs2, size_t n) +memcasecmp (vs1, vs2, n) + const void *vs1; + const void *vs2; + size_t n; { unsigned int i; unsigned char *s1 = (unsigned char *) vs1;