// Capitalizes string using ctype library #include #include #include #include int main(void) { string s = get_string("before: "); printf("after: "); for (int i = 0, n = strlen(s); i < n; i++) { printf("%c", toupper(s[i])); } printf("\n"); }