summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/tolower.c
blob: c24932ef485518f0210ae0666983473c16ebfa77 (plain)
1
2
3
4
5
6
7
8
#include <ctype.h>

int tolower(int ch) {
  if ( (unsigned int)(ch - 'A') < 26u )
    ch += 'a' - 'A';
  return ch;
}