lib, net: make isodigit() public and use it
[linux-2.6-microblaze.git] / include / linux / ctype.h
index 8acfe31..653589e 100644 (file)
@@ -61,4 +61,10 @@ static inline char _tolower(const char c)
        return c | 0x20;
 }
 
+/* Fast check for octal digit */
+static inline int isodigit(const char c)
+{
+       return c >= '0' && c <= '7';
+}
+
 #endif