This is quite similar to tolower(int) in ctype.h but that one is an actual function, I''m just optimizing that concept..
#include <ctype.h>char _tolower[256];// call once at start of program...void init_tolower (){ for (int i=0 ; i<256 ; i++) _tolower[i] = tolower(i);}void lowercase (char *str){ while (*str) *str++ = _tolower[*str];}
Hope there''s no typos, took 3-4 mins to type this up. Let me know how it compares