1 /*
2 Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
3 Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling
4  */
5 #define _DEFAULT_SOURCE
6 #include <wctype.h>
7 
8 int
iswdigit_l(wint_t c,struct __locale_t * locale)9 iswdigit_l (wint_t c, struct __locale_t *locale)
10 {
11   (void) locale;
12   return c >= (wint_t)'0' && c <= (wint_t)'9';
13 }
14