X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_atoi.c;fp=sbr%2Fm_atoi.c;h=21606c40114d9b5c048e7063bde5b57767d8169e;hp=174c40771f4bf3d6c6e5434345a1fa69980b79f2;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=f480c03187724e54e5391ee61b810827da319a6c diff --git a/sbr/m_atoi.c b/sbr/m_atoi.c index 174c407..21606c4 100644 --- a/sbr/m_atoi.c +++ b/sbr/m_atoi.c @@ -1,4 +1,3 @@ - /* * m_atoi.c -- Parse a string representation of a message number, and * -- return the numeric value of the message. If the string @@ -15,20 +14,20 @@ int m_atoi (char *str) { - int i; - unsigned char *cp; + int i; + unsigned char *cp; - for (i = 0, cp = str; *cp; cp++) { + for (i = 0, cp = str; *cp; cp++) { #ifdef LOCALE - if (!isdigit(*cp)) + if (!isdigit(*cp)) #else - if (*cp < '0' || *cp > '9') + if (*cp < '0' || *cp > '9') #endif - return 0; + return 0; - i *= 10; - i += (*cp - '0'); - } + i *= 10; + i += (*cp - '0'); + } - return i; + return i; }