home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / gcc / libnixV0_8.lha / gnu / libnix-sources.lha / sources / nix / extra / strupper.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  224 b   |  19 lines

  1. #include <ctype.h>
  2. #include <stabs.h>
  3.  
  4. char *strupper(char *s)
  5. {
  6.   unsigned char *s1;
  7.  
  8.   s1=(unsigned char *)s;
  9.   while(*s1)
  10.   {
  11.     if (islower(*s1))
  12.       *s1-='a'-'A';
  13.     s1++;
  14.   }
  15.   return s;
  16. }
  17.  
  18. ALIAS(strupr,strupper);
  19.