1 2 3 4 5 6 7 8
#include <ctype.h> int tolower(int c) { if (c >= 'A' && c <= 'Z') { return c - 'A' + 'a'; } return c; }