Added binary and unicode file i/o support to msvcrt.
[reactos.git] / reactos / lib / msvcrt / ctype / isctype.c
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/ctype.h>
3
4
5 extern unsigned short _ctype[];
6
7 unsigned short *_pctype = _ctype + 1;
8 unsigned short *_pwctype = _ctype + 1;
9
10
11 unsigned short **__p__pctype(void)
12 {
13 return &_pctype;
14 }
15
16 unsigned short **__p__pwctype(void)
17 {
18 return &_pwctype;
19 }
20
21 int _isctype(unsigned int c, int ctypeFlags)
22 {
23 return (_pctype[(unsigned char)(c & 0xFF)] & ctypeFlags);
24 }
25
26 int iswctype(wint_t wc, wctype_t wctypeFlags)
27 {
28 return (_pwctype[(unsigned char)(wc & 0xFF)] & wctypeFlags);
29 }
30
31 // obsolete
32 int is_wctype(wint_t wc, wctype_t wctypeFlags)
33 {
34 return (_pwctype[(unsigned char)(wc & 0xFF)] & wctypeFlags);
35 }
36
37 /* EOF */