I don't quite understand what help do you need. tolower() is a standard function from <ctype.h> header. If you want to apply it to an arbitrary string you could do something like:
Code:void lower_string(char *str) { while (*str) { *str = tolower(*str); ++str; } }