X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_atoi.c;h=0dcbffe4517bd1a797c847b963341303b40fa24a;hp=022253379470d0b056f31ddbd66a9a6c2e412a5b;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4 diff --git a/sbr/m_atoi.c b/sbr/m_atoi.c index 0222533..0dcbffe 100644 --- a/sbr/m_atoi.c +++ b/sbr/m_atoi.c @@ -9,20 +9,17 @@ */ #include +#include int -m_atoi (char *str) +m_atoi(char *str) { int i; 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;