Re: [PATCH] Morse code panics for 2.6.29-rc1

From: Andi Kleen
Date: Sun Jan 11 2009 - 15:22:54 EST


Tomas Szepe <szepe@xxxxxxxxxxxxxxx> writes:
> +
> +static inline unsigned char tomorse(char c) {
> + if (c >= 'a' && c <= 'z')
> + c -= 'a' - 'A';

It's not widely known, but the kernel actually has a
fully usable ctype.h

-Andi
--
ak@xxxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/