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

  1. Xref: sparky gnu.gcc.help:3009 comp.os.vms:21839
  2. Newsgroups: gnu.gcc.help,comp.os.vms
  3. Path: sparky!uunet!usc!sdd.hp.com!nigel.msen.com!hela.iti.org!cs.widener.edu!umn.edu!csus.edu!netcom.com!rbp
  4. From: rbp@netcom.com (Bob Pasker)
  5. Subject: Re: problem report of toupper() in GCC 1.42 on VMS
  6. Message-ID: <1993Jan23.181600.2106@netcom.com>
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <1993Jan22.171257.28021@netcom.com> <1jq415INNhrv@gap.caltech.edu>
  9. Date: Sat, 23 Jan 1993 18:16:00 GMT
  10. Lines: 19
  11.  
  12. carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes:
  13.  
  14. >In article <1993Jan22.171257.28021@netcom.com>, rbp@netcom.com (Bob Pasker) writes:
  15. >=GNU_CC_INCLUDE:[000000]ctype.h has the following utterly useless
  16. >=definition of toupper():
  17. >=    #define toupper(c)      ((c)-'a'+'A')
  18. >It's not totally useless.  It simply must always be used in conjunction with
  19. >islower().  E.g.,
  20. >    c = islower(c) ? toupper(c) : c;
  21.  
  22. sorry, yes, you're right.  its useful if you have a penchant for a
  23. function that subtracts 32.
  24.  
  25.  
  26. -- 
  27. -- 
  28. -- bob pasker
  29. -- rbp@netcom.com
  30. --
  31.