home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky gnu.gcc.help:3002 comp.os.vms:21760
- Newsgroups: gnu.gcc.help,comp.os.vms
- Path: sparky!uunet!charon.amdahl.com!netcomsv!netcom.com!rbp
- From: rbp@netcom.com (Bob Pasker)
- Subject: problem report of toupper() in GCC 1.42 on VMS
- Message-ID: <1993Jan22.171257.28021@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Fri, 22 Jan 1993 17:12:57 GMT
- Lines: 20
-
- GNU_CC_INCLUDE:[000000]ctype.h has the following utterly useless
- definition of toupper():
-
- #define toupper(c) ((c)-'a'+'A')
-
- since there exists a properly functioning routine in the RTL, the
- proper definition is:
-
- char toupper(char);
-
- or, if you don't like the CALLS, roll yer own #define that makes
- (toupper('A') == toupper('a')) be a true value.
-
- tolower() is similarly brain dead.
-
- --
- --
- -- bob pasker
- -- rbp@netcom.com
- --
-