X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fctype%2Ftolower.c;h=530abf2a9e6bfcf7a94e69b3b3f8f243d53ebe1a;hb=3a92b78272cd3f0f413bb1cfc0c77deef49967fd;hp=28c435ded8377d125f49ece8b5a8c8b2767007d4;hpb=be35e77c0d824e5bd545620ca81c812f9e16f0e5;p=pdclib.old diff --git a/functions/ctype/tolower.c b/functions/ctype/tolower.c index 28c435d..530abf2 100644 --- a/functions/ctype/tolower.c +++ b/functions/ctype/tolower.c @@ -12,11 +12,7 @@ int tolower( int c ) { - if ( ( c >= 'A' ) && ( c <= 'Z' ) ) - { - c += ( 'a' - 'A' ); - } - return c; + return _PDCLIB_locale_info.ctype[c].lower; } #endif