1 /* 2 Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de> 3 Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling 4 */ 5 6 #define _DEFAULT_SOURCE 7 #include <ctype.h> 8 9 #undef isgraph_l 10 int isgraph_l(int c,struct __locale_t * locale)11isgraph_l (int c, struct __locale_t *locale) 12 { 13 #if _PICOLIBC_CTYPE_SMALL 14 (void) locale; 15 return isgraph(c); 16 #else 17 return __locale_ctype_ptr_l (locale)[c+1] & (_P|_U|_L|_N); 18 #endif 19 } 20