home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Mail / qpopper-2.4-MIHS / pop_lower.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-11  |  552 b   |  28 lines

  1. /*
  2.  * Copyright (c) 1989 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  */
  6. /*
  7.  * Copyright (c) 1997 by Qualcomm Incorporated.
  8.  */
  9.  
  10.  
  11. #include <config.h>
  12. #include <stdio.h>
  13. #include <sys/types.h>
  14. #include <ctype.h>
  15.  
  16. /* 
  17.  *  lower:  Convert a string to lowercase
  18.  */
  19.  
  20. pop_lower (buf)
  21. char        *   buf;
  22. {
  23.     char        *   mp;
  24.  
  25.     for (mp = buf; *mp; mp++)
  26.         if (isupper(*mp) && isupper(*mp)) *mp = (char)tolower((int)*mp);
  27. }
  28.