diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ctype.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ctype.h b/include/linux/ctype.h index 8acfe312f947..653589e3e30e 100644 --- a/include/linux/ctype.h +++ b/include/linux/ctype.h | |||
| @@ -61,4 +61,10 @@ static inline char _tolower(const char c) | |||
| 61 | return c | 0x20; | 61 | return c | 0x20; |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | /* Fast check for octal digit */ | ||
| 65 | static inline int isodigit(const char c) | ||
| 66 | { | ||
| 67 | return c >= '0' && c <= '7'; | ||
| 68 | } | ||
| 69 | |||
| 64 | #endif | 70 | #endif |
