Mega Code Archive

 
Categories / C / Code Snippets
 

Wint_t towlower 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'); } }