]> diplodocus.org Git - nmh/blobdiff - sbr/m_atoi.c
Added -convertargs switch to repl(1), to pass arguments to programs
[nmh] / sbr / m_atoi.c
index f05271f7102d0e0f09b0009bdea263f5433be37d..da6730df5c5447615855755b54e257b43dac9a2d 100644 (file)
@@ -19,11 +19,7 @@ m_atoi (char *str)
     char *cp;
 
     for (i = 0, cp = str; *cp; cp++) {
-#ifdef LOCALE
        if (!isdigit((unsigned char) *cp))
-#else
-       if (*cp < '0' || *cp > '9')
-#endif
            return 0;
 
        i *= 10;