Rearranged whitespace (and comments) in all the code!
[mmh] / sbr / m_atoi.c
index 174c407..21606c4 100644 (file)
@@ -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
 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;
 }