scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

toupper.c (117B)


      1 #define __USE_MACROS
      2 #include <ctype.h>
      3 #undef toupper
      4 
      5 int
      6 toupper(int c)
      7 {
      8 	return (islower(c)) ? c & ~0x20 : c;
      9 }