/* Copyright (c) 2016 Corinna Vinschen Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #define _DEFAULT_SOURCE #include #undef iscntrl_l int iscntrl_l (int c, struct __locale_t *locale) { #if _PICOLIBC_CTYPE_SMALL (void) locale; return iscntrl(c); #else return __locale_ctype_ptr_l (locale)[c+1] & _C; #endif }