]> pd.if.org Git - pdclib.old/blobdiff - functions/ctype/tolower.c
PDCLIB-1 PDCLIB-2 PDCLIB-9 PDCLIB-12: Add thread specific locale support; migrate...
[pdclib.old] / functions / ctype / tolower.c
index 28c435ded8377d125f49ece8b5a8c8b2767007d4..a77001ef8e687fdbbddd10209e8d9fc94f9b1690 100644 (file)
@@ -9,14 +9,11 @@
 #include <ctype.h>
 
 #ifndef REGTEST
+#include <_PDCLIB_locale.h>
 
 int tolower( int c )
 {
-    if ( ( c >= 'A' ) && ( c <= 'Z' ) )
-    {
-        c += ( 'a' - 'A' );
-    }
-    return c;
+    return _PDCLIB_threadlocale()->_CType[c].lower;
 }
 
 #endif