1 /* 2 Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de> 3 Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling 4 */ 5 /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ 6 #define _DEFAULT_SOURCE 7 #include <_ansi.h> 8 #include <wctype.h> 9 #include "local.h" 10 11 wint_t towupper_l(wint_t c,struct __locale_t * locale)12towupper_l (wint_t c, struct __locale_t *locale) 13 { 14 (void) locale; 15 #ifdef _MB_CAPABLE 16 return towctrans_l (c, WCT_TOUPPER, locale); 17 #else 18 return towupper (c); 19 #endif /* _MB_CAPABLE */ 20 } 21