]> diplodocus.org Git - nmh/blobdiff - sbr/m_atoi.c
new.c: Order two return statements to match comment.
[nmh] / sbr / m_atoi.c
index f05271f7102d0e0f09b0009bdea263f5433be37d..87a782833d9e68d9ca51996dcf6ac3e8a655e651 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * m_atoi.c -- Parse a string representation of a message number, and
+/* m_atoi.c -- Parse a string representation of a message number, and
  *          -- return the numeric value of the message.  If the string
  *          -- contains any non-digit characters, then return 0.
  *
@@ -19,11 +17,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;