Rev 2525 | Rev 3271 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2525 | Rev 2526 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef LIBC_CTYPE_H_ |
35 | #ifndef LIBC_CTYPE_H_ |
36 | #define LIBC_CTYPE_H_ |
36 | #define LIBC_CTYPE_H_ |
37 | 37 | ||
- | 38 | static inline int islower(int c) |
|
- | 39 | { |
|
- | 40 | return ((c >= 'a') && (c <= 'z')); |
|
- | 41 | } |
|
- | 42 | ||
- | 43 | static inline int isupper(int c) |
|
- | 44 | { |
|
- | 45 | return ((c >= 'A') && (c <= 'Z')); |
|
- | 46 | } |
|
- | 47 | ||
38 | static inline int isalpha(int c) |
48 | static inline int isalpha(int c) |
39 | { |
49 | { |
40 | return (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z'))); |
50 | return (islower(c) || isupper(c)); |
41 | } |
51 | } |
42 | 52 | ||
43 | static inline int isdigit(int c) |
53 | static inline int isdigit(int c) |
44 | { |
54 | { |
45 | return ((c >= '0') && (c <= '9')); |
55 | return ((c >= '0') && (c <= '9')); |