getopt: fix null pointer arithmetic ub
[musl] / src / ctype / isxdigit.c
1 #include <ctype.h>
2
3 int isxdigit(int c)
4 {
5         return isdigit(c) || ((unsigned)c|32)-'a' < 6;
6 }
7
8 int __isxdigit_l(int c, locale_t l)
9 {
10         return isxdigit(c);
11 }
12
13 weak_alias(__isxdigit_l, isxdigit_l);