X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e768e3cc0ce768373d3320eca4cdd08b8cf646a..b46d49ba:/sbr/m_atoi.c?ds=sidebyside diff --git a/sbr/m_atoi.c b/sbr/m_atoi.c index f05271f7..87a78283 100644 --- a/sbr/m_atoi.c +++ b/sbr/m_atoi.c @@ -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;