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