Mail Archives: djgpp-workers/2001/06/11/07:31:33
On Sat, 9 Jun 2001, Eli Zaretskii wrote:
[Regarding a function taking a char value as argument, which he'd like
changed to 'int']:
> If you want an example of such function, look at `tolower'.
But in the case of tolower and friends (the <ctype.h> functions), the
rationale behind that decision was a rather different one: they are meant
to accept two different types of input: a character cast to (unsigned
char), or the value of the EOF macro, which is negative.
I.e. I don't think tolower() is a very good comparison, here.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -