Mail Archives: djgpp/1998/04/19/00:49:23
Br5an wrote:
>
> Your program compiled and woked fine for me.... I was expecting a warning
> or error about the return type of void main() however.
Did you use the '-Wall' option, and do you have gcc 2.8.0 or 2.7.2.1?
The newer version warns about void main().
> Lowercase letters always returned 32 for me. Made me wonder... Are you
> using any type of foreign keyboard driver?? I wonder if that could cause a
> problem. When you input an uppercase char does it echo to the screen as
> uppercase??
His problem was that islower() does not return the lowercase equivalent
of a character; it tests whether the character is lowercase and returns
a true or false value. The correct function is tolower().
--
John M. Aldrich <fighteer AT cs DOT com> - ICQ UIN# 7406319
* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
again.
* It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
--- Douglas Adams
- Raw text -