iswlower

Header: <wctype.h>

Checks if the given wide character is a lowercase letter, i.e. one of abcdefghijklmnopqrstuvwxyz or any lowercase letter specific to the current locale.

# Declarations

int iswlower( wint_t ch );

(since C95)

# Parameters

# Return value

Non-zero value if the wide character is an lowercase letter, zero otherwise.

# Notes

ISO 30112 specifies which Unicode characters are include in POSIX lower category.

# Example

#include <locale.h>
#include <stdio.h>
#include <wchar.h>
#include <wctype.h>
 
int main(void)
{
    wchar_t c = L'\u0444'; // Cyrillic small letter ef ('ф')
    printf("In the default locale, iswlower(%#x) = %d\n", c, !!iswlower(c));
    setlocale(LC_ALL, "en_US.utf8");
    printf("In Unicode locale, iswlower(%#x) = %d\n", c, !!iswlower(c));
}

# See also