home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / help / 3002 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  843 b 

  1. Xref: sparky gnu.gcc.help:3002 comp.os.vms:21760
  2. Newsgroups: gnu.gcc.help,comp.os.vms
  3. Path: sparky!uunet!charon.amdahl.com!netcomsv!netcom.com!rbp
  4. From: rbp@netcom.com (Bob Pasker)
  5. Subject: problem report of toupper() in GCC 1.42 on VMS
  6. Message-ID: <1993Jan22.171257.28021@netcom.com>
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. Date: Fri, 22 Jan 1993 17:12:57 GMT
  9. Lines: 20
  10.  
  11. GNU_CC_INCLUDE:[000000]ctype.h has the following utterly useless
  12. definition of toupper():
  13.  
  14.     #define toupper(c)      ((c)-'a'+'A')
  15.  
  16. since there exists a properly functioning routine in the RTL, the
  17. proper definition is:
  18.  
  19.     char toupper(char);
  20.  
  21. or, if you don't like the CALLS, roll yer own #define that makes
  22. (toupper('A') == toupper('a')) be a true value.
  23.  
  24. tolower() is similarly brain dead.
  25.  
  26. -- 
  27. -- 
  28. -- bob pasker
  29. -- rbp@netcom.com
  30. --
  31.