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 <ctype.h> 7 8 #undef isspace_l 9 int isspace_l(int c,struct __locale_t * locale)10isspace_l (int c, struct __locale_t *locale) 11 { 12 #if _PICOLIBC_CTYPE_SMALL 13 (void) locale; 14 return isspace(c); 15 #else 16 return __locale_ctype_ptr_l (locale)[c+1] & _S; 17 #endif 18 } 19 20