int iswalpha(wint_t ch) vs isalpha()
#include <stdio.h>
#include <wctype.h>
int main(void)
{
int wc;
for (wc=0; wc <= 0xFF; wc++) {
printf("%3d", wc);
printf(" %#4x ", wc);
printf("%2s", iswalpha(wc) ? "A" : " ");
putchar('\n');
}
}
/*
0 0
1 0x1
2 0x2
3 0x3
4 0x4
5 0x5
6 0x6
7 0x7
8 0x8
9 0x9
10 0xa
11 0xb
12 0xc
13 0xd
14 0xe
15 0xf
16 0x10
17 0x11
18 0x12
19 0x13
20 0x14
21 0x15
22 0x16
23 0x17
24 0x18
25 0x19
26 0x1a
27 0x1b
28 0x1c
29 0x1d
30 0x1e
31 0x1f
32 0x20
33 0x21
34 0x22
35 0x23
36 0x24
37 0x25
38 0x26
39 0x27
40 0x28
41 0x29
42 0x2a
43 0x2b
44 0x2c
45 0x2d
46 0x2e
47 0x2f
48 0x30
49 0x31
50 0x32
51 0x33
52 0x34
53 0x35
54 0x36
55 0x37
56 0x38
57 0x39
58 0x3a
59 0x3b
60 0x3c
61 0x3d
62 0x3e
63 0x3f
64 0x40
65 0x41 A
66 0x42 A
67 0x43 A
68 0x44 A
69 0x45 A
70 0x46 A
71 0x47 A
72 0x48 A
73 0x49 A
74 0x4a A
75 0x4b A
76 0x4c A
77 0x4d A
78 0x4e A
79 0x4f A
80 0x50 A
81 0x51 A
82 0x52 A
83 0x53 A
84 0x54 A
85 0x55 A
86 0x56 A
87 0x57 A
88 0x58 A
89 0x59 A
90 0x5a A
91 0x5b
92 0x5c
93 0x5d
94 0x5e
95 0x5f
96 0x60
97 0x61 A
98 0x62 A
99 0x63 A
100 0x64 A
101 0x65 A
102 0x66 A
103 0x67 A
104 0x68 A
105 0x69 A
106 0x6a A
107 0x6b A
108 0x6c A
109 0x6d A
110 0x6e A
111 0x6f A
112 0x70 A
113 0x71 A
114 0x72 A
115 0x73 A
116 0x74 A
117 0x75 A
118 0x76 A
119 0x77 A
120 0x78 A
121 0x79 A
122 0x7a A
123 0x7b
124 0x7c
125 0x7d
126 0x7e
127 0x7f
128 0x80
129 0x81
130 0x82
131 0x83
132 0x84
133 0x85
134 0x86
135 0x87
136 0x88
137 0x89
138 0x8a
139 0x8b
140 0x8c
141 0x8d
142 0x8e
143 0x8f
144 0x90
145 0x91
146 0x92
147 0x93
148 0x94
149 0x95
150 0x96
151 0x97
152 0x98
153 0x99
154 0x9a
155 0x9b
156 0x9c
157 0x9d
158 0x9e
159 0x9f
160 0xa0
161 0xa1
162 0xa2
163 0xa3
164 0xa4
165 0xa5
166 0xa6
167 0xa7
168 0xa8
169 0xa9
170 0xaa
171 0xab
172 0xac
173 0xad
174 0xae
175 0xaf
176 0xb0
177 0xb1
178 0xb2
179 0xb3
180 0xb4
181 0xb5
182 0xb6
183 0xb7
184 0xb8
185 0xb9
186 0xba
187 0xbb
188 0xbc
189 0xbd
190 0xbe
191 0xbf
192 0xc0 A
193 0xc1 A
194 0xc2 A
195 0xc3 A
196 0xc4 A
197 0xc5 A
198 0xc6 A
199 0xc7 A
200 0xc8 A
201 0xc9 A
202 0xca A
203 0xcb A
204 0xcc A
205 0xcd A
206 0xce A
207 0xcf A
208 0xd0 A
209 0xd1 A
210 0xd2 A
211 0xd3 A
212 0xd4 A
213 0xd5 A
214 0xd6 A
215 0xd7
216 0xd8 A
217 0xd9 A
218 0xda A
219 0xdb A
220 0xdc A
221 0xdd A
222 0xde A
223 0xdf A
224 0xe0 A
225 0xe1 A
226 0xe2 A
227 0xe3 A
228 0xe4 A
229 0xe5 A
230 0xe6 A
231 0xe7 A
232 0xe8 A
233 0xe9 A
234 0xea A
235 0xeb A
236 0xec A
237 0xed A
238 0xee A
239 0xef A
240 0xf0 A
241 0xf1 A
242 0xf2 A
243 0xf3 A
244 0xf4 A
245 0xf5 A
246 0xf6 A
247 0xf7
248 0xf8 A
249 0xf9 A
250 0xfa A
251 0xfb A
252 0xfc A
253 0xfd A
254 0xfe A
255 0xff A
*/
Related examples in the same category