cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/19/00:49:23

From: "John M. Aldrich" <fighteer AT cs DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019