#include void toLower(char *str); int main(void) { char str[]="HELLO, WORLD"; printf("Before :%s\n", str); toLower(str); printf("After :%s\n", str); return 0; } void toLower(char *str) { while (*str) { if ( 'A' <= *str && *str <= 'Z' ) { *str += 0x20; } str++; } }