home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / tyc / list1713.c < prev    next >
C/C++ Source or Header  |  1993-10-16  |  380b  |  22 lines

  1.  /* The character conversion functions strlwr() and strupr(). */
  2.  
  3.  #include <stdio.h>
  4.  #include <string.h>
  5.  
  6.  main()
  7.  {
  8.      char buf[80];
  9.  
  10.      while (1)
  11.      {
  12.          puts("Enter a line of text, a blank to exit.");
  13.          gets(buf);
  14.  
  15.          if ( strlen(buf) == 0 )
  16.              break;
  17.  
  18.          puts(strlwr(buf));
  19.          puts(strupr(buf));
  20.      }
  21.  }
  22.