home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky gnu.gcc.help:3009 comp.os.vms:21839
- Newsgroups: gnu.gcc.help,comp.os.vms
- Path: 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
-
- 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
- --
-