home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19181 < prev    next >
Encoding:
Text File  |  1993-01-04  |  915 b   |  26 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!gatech!destroyer!ncar!noao!stsci!kimball
  3. From: kimball@stsci.edu (Timothy Kimball)
  4. Subject: Re: String function names
  5. Message-ID: <1993Jan4.144317.28078@stsci.edu>
  6. Sender: news@stsci.edu
  7. Organization: Space Telescope Science Institute
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. References: <1i0fcaINNgqd@msuinfo.cl.msu.edu>
  10. Date: Mon, 4 Jan 1993 14:43:17 GMT
  11. Lines: 13
  12.  
  13. Jerome M Learman (learman@cps.msu.edu) wrote:
  14. : Does anyone know of a string function that converts all letter in the string to
  15. : lower case letter or all capital letter. I could parse the string char by char
  16. : and use a case statment but I really don't want to do this
  17. : ---
  18.  
  19. Go ahead and parse char by char, but instead of a case statement,
  20. use the standard library functions tolower() and toupper().
  21. They return the lower (or upper) case version of their argument,
  22. and their names are obvious. :^)
  23.  
  24. tdk
  25.