diff options
Diffstat (limited to 'newlib/libc/ctype/iswlower.c')
-rw-r--r-- | newlib/libc/ctype/iswlower.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/newlib/libc/ctype/iswlower.c b/newlib/libc/ctype/iswlower.c new file mode 100644 index 000000000..d320486a9 --- /dev/null +++ b/newlib/libc/ctype/iswlower.c @@ -0,0 +1,38 @@ + +/* +FUNCTION + <<iswlower>>---lower-case wide-character test + +INDEX + iswlower + +ANSI_SYNOPSIS + #include <wctype.h> + int iswlower(wint_t <[c]>); + +TRAD_SYNOPSIS + #include <wctype.h> + int iswlower(<[c]>) + wint_t <[c]>; + +DESCRIPTION +<<iswlower>> is a function which classifies wide-character values that +have an upper-case translation. + +RETURNS +<<iswlower>> returns non-zero if <[c]> is a lower-case wide-character. + +PORTABILITY +<<iswlower>> is C99. + +No supporting OS subroutines are required. +*/ +#include <_ansi.h> +#include <wctype.h> + +int +_DEFUN(iswlower,(c),wint_t c) +{ + return (towupper (c) != c); +} + |