a string is also an array of chars. So you can iterate through all indexes and get a char. This char can you compare and do your thing.
const char *text = "Hello";
int l = strln(text);
for( int i=0;i<l;i++)>
{
char c = text[i];
if( (c >='A') && (c<='Z') )
{
//do you stuff
text[i] = '$';
}
}
This is for pure C. There are also string classes as
std::string which have some helpful functions.