wint_t towlower(wint_t ch) vs tolower() : towlower « wctype.h « C / ANSI-C






wint_t towlower(wint_t ch) vs tolower()



    
  


#include <stdio.h>
#include <wctype.h>

int main(void)
{
   int wc;

   for (wc=0; wc <= 0xFF; wc++) {
      printf("%3d", wc);
      printf(" %#4x ", wc);
      printf("%3s", towlower(wc)  ? "AN" : " ");

      putchar('\n');
   }
}

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

           
       








Related examples in the same category