25 #define isalpha(a) ((((unsigned)(a)|32)-'a') < 26)
26 #define isdigit(a) (((unsigned)(a)-'0') < 10)
27 #define islower(a) (((unsigned)(a)-'a') < 26)
28 #define isupper(a) (((unsigned)(a)-'A') < 26)
29 #define isprint(a) (((unsigned)(a)-0x20) < 0x5f)
30 #define isgraph(a) (((unsigned)(a)-0x21) < 0x5e)
34 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
35 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
36 || defined(_BSD_SOURCE)
38 #define __NEED_locale_t
39 #include <bits/alltypes.h>
41 int isalnum_l(int, locale_t
);
42 int isalpha_l(int, locale_t
);
43 int isblank_l(int, locale_t
);
44 int iscntrl_l(int, locale_t
);
45 int isdigit_l(int, locale_t
);
46 int isgraph_l(int, locale_t
);
47 int islower_l(int, locale_t
);
48 int isprint_l(int, locale_t
);
49 int ispunct_l(int, locale_t
);
50 int isspace_l(int, locale_t
);
51 int isupper_l(int, locale_t
);
52 int isxdigit_l(int, locale_t
);
53 int tolower_l(int, locale_t
);
54 int toupper_l(int, locale_t
);
58 #define _tolower(a) ((a)|0x20)
59 #define _toupper(a) ((a)&0x5f)