1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/ctype.h>
5 extern unsigned short _ctype
[];
7 unsigned short *_pctype
= _ctype
+ 1;
8 unsigned short *_pwctype
= _ctype
+ 1;
11 unsigned short **__p__pctype(void)
16 unsigned short **__p__pwctype(void)
21 int _isctype(unsigned int c
, int ctypeFlags
)
23 return (_pctype
[(unsigned char)(c
& 0xFF)] & ctypeFlags
);
26 int iswctype(wint_t wc
, wctype_t wctypeFlags
)
28 return (_pwctype
[(unsigned char)(wc
& 0xFF)] & wctypeFlags
);
32 int is_wctype(wint_t wc
, wctype_t wctypeFlags
)
34 return (_pwctype
[(unsigned char)(wc
& 0xFF)] & wctypeFlags
);