On Jul 9 2007 19:51, H. Peter Anvin wrote:
>+
>+static inline int isdigit(int ch)
>+{
>+ return (ch >= '0') && (ch <= '9');
>+}
I'd say static inline unsigned int isdigit(unsigned char), since ASCII does not
realistically exceed 255.
>+static int strnlen(const char *s, int maxlen)
unsigned int, and unsigned int, too?
The glibc strnlen type also uses unsigned types.
Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html