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 toascii_l
9 
10 int
toascii_l(int c,struct __locale_t * locale)11 toascii_l (int c, struct __locale_t *locale)
12 {
13   (void) locale;
14   return c & 0177;
15 }
16