From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: problem with islower() in DJGPP Date: Sun, 19 Apr 1998 00:39:22 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 28 Message-ID: <35397FFA.2285@cs.com> References: <01bd6a4c$7ceff000$96968ccf AT ben> <1998041901513800 DOT VAA22489 AT ladder01 DOT news DOT aol DOT com> NNTP-Posting-Host: ppp205.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 - 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