🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #867

Re: problem report of toupper() in GCC 1.42 on VMS

#867
From: Bob Pasker
Date: Sat, 23 Jan 1993 18:16
19 lines
1062 bytes
carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes:

>In article <1993Jan22.171257.28021@netcom.com>, rbp@netcom.com (Bob Pasker) writes:
>=GNU_CC_INCLUDE:[000000]ctype.h has the following utterly useless
>=definition of toupper():
>=	#define toupper(c)      ((c)-'a'+'A')
>It's not totally useless.  It simply must always be used in conjunction with
>islower().  E.g.,
>	c = islower(c) ? toupper(c) : c;

sorry, yes, you're right.  its useful if you have a penchant for a
function that subtracts 32.


-- 
-- 
-- bob pasker
-- rbp@netcom.com
--
Technical Details
Message-ID: <1993Jan23.181600.2106@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!nigel.msen.com!hela.iti.org!cs.widener.edu!umn.edu!csus.edu!netcom.com!rbp
References: <1993Jan22.171257.28021@netcom.com> <1jq415INNhrv@gap.caltech.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help,comp.os.vms
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!nigel.msen.com!hela.iti.org!cs.widener.edu!umn.edu!csus.edu!netcom.com!rbp
From: rbp@netcom.com (Bob Pasker)
Subject: Re: problem report of toupper() in GCC 1.42 on VMS
Message-ID: <1993Jan23.181600.2106@netcom.com>
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
References: <1993Jan22.171257.28021@netcom.com> <1jq415INNhrv@gap.caltech.edu>
Date: Sat, 23 Jan 1993 18:16:00 GMT
Lines: 19