Subject: Re: Type coersion long->int ?
To: None <firstname.lastname@example.org>
From: Peter Seebach <email@example.com>
Date: 02/02/2000 13:03:55
In message <20000202124838.A2607@realms.nimenees.com>, firstname.lastname@example.org writes:
>So wouldn't it make sense for it to interpret its argument as a character
>since it claims to take a character and not an int?
>Or perhaps put the check
>c<0 || c>128 in the isalpha function so you could correctly pass a char withou
>checking it first? It seems kinda stupid that a function which is supposed to
>work on characters can't be passed everything that would fit in a char.
It is officially able to take anything that can fit in a char, and indeed, our
It doesn't have these checks because it's supposed to be fast; that's why all
the <ctype.h> functions have undefined behavior for things outside the