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 <_ansi.h>
7 #include <wctype.h>
8 
9 int
iswxdigit_l(wint_t c,struct __locale_t * locale)10 iswxdigit_l (wint_t c, struct __locale_t *locale)
11 {
12   (void) locale;
13   return ((c >= (wint_t)'0' && c <= (wint_t)'9') ||
14 	  (c >= (wint_t)'a' && c <= (wint_t)'f') ||
15 	  (c >= (wint_t)'A' && c <= (wint_t)'F'));
16 }
17 
18