Article View: gnu.gcc.help
Article #860problem report of toupper() in GCC 1.42 on VMS
From: Bob Pasker
Date: Fri, 22 Jan 1993 17:12
Date: Fri, 22 Jan 1993 17:12
20 lines
823 bytes
823 bytes
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
--
Technical Details
Message-ID:
<1993Jan22.171257.28021@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!netcomsv!netcom.com!rbpShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help,comp.os.vms Path: arc1-ca.pugleaf.net!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