Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!emory!rsiatl!kd4nc!n4hgf!wht From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker) Newsgroups: comp.lang.c Subject: Re: Why is tolower behave different??? Message-ID: <174@n4hgf.Mt-Park.GA.US> Date: 23 Jul 90 20:29:38 GMT References: <2841@elrond.CalComp.COM> <1863@tkou02.enet.dec.com> <1990Jul23.040004.12292@laguna.ccsf.caltech.edu> Reply-To: wht@n4hgf.UUCP (Warren Tucker) Distribution: na Organization: Amateur Radio Station N4HGF Lines: 16 >>>Finally, it dawned on me that the function call tolower was to blame. >>>On the VAX, the call did nothing if the char was already lowercase, while >>>the Sun converted it anyway. System 5-derived tolower() absolutely coverts, while BSD does the equivalent if isupper(ch) convert ANSI aside, I'll always code if(isupper(ch)) ch = tolower(ch); to be safe. ---------------------------------------------------------------------- Warren Tucker, TuckerWare emory!n4hgf!wht or wht@n4hgf.Mt-Park.GA.US "It was electrons that brought down the Berlin Wall." -- Timothy Leary