SM - Sorry, I forgot silence dbg messages!
[reactos.git] / reactos / lib / crt / ctype / isctype.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: msvcrt/ctype/isctype.c
5 * PURPOSE: C Runtime
6 * PROGRAMMER: Copyright (C) 1995 DJ Delorie
7 */
8
9 #include <msvcrt/ctype.h>
10
11
12 extern unsigned short _ctype[];
13
14 unsigned short *_pctype = _ctype + 1;
15 unsigned short *_pwctype = _ctype + 1;
16
17
18 /*
19 * @implemented
20 */
21 unsigned short **__p__pctype(void)
22 {
23 return &_pctype;
24 }
25
26 /*
27 * @implemented
28 */
29 unsigned short **__p__pwctype(void)
30 {
31 return &_pwctype;
32 }
33
34 /*
35 * @implemented
36 */
37 int _isctype(unsigned int c, int ctypeFlags)
38 {
39 return (_pctype[(unsigned char)(c & 0xFF)] & ctypeFlags);
40 }
41
42 /*
43 * @implemented
44 */
45 int iswctype(wint_t wc, wctype_t wctypeFlags)
46 {
47 return (_pwctype[(unsigned char)(wc & 0xFF)] & wctypeFlags);
48 }
49
50 /*
51 * obsolete
52 *
53 * @implemented
54 */
55 int is_wctype(wint_t wc, wctype_t wctypeFlags)
56 {
57 return (_pwctype[(unsigned char)(wc & 0xFF)] & wctypeFlags);
58 }
59
60 /* EOF */