Removed the non-LOCALE character code and the #ifdefs and simplified.
[mmh] / sbr / m_atoi.c
index 03bf0d0..b903b7e 100644 (file)
@@ -18,11 +18,7 @@ m_atoi(char *str)
        unsigned char *cp;
 
        for (i = 0, cp = str; *cp; cp++) {
-#ifdef LOCALE
                if (!isdigit(*cp))
-#else
-               if (*cp < '0' || *cp > '9')
-#endif
                        return 0;
 
                i *= 10;