What exactly are you trying to do? If you want an overloaded function with that signature, why don't you just write it?
EDIT: something like:
1 2 3 4 5 6 7 8 9
int charInWord(char* str, char ch)
{
for(char* p = str; *p != 0; ++p)
{
if(*p == ch) *p = '*'; // notice the function is poorly named if it changes the string
return 1; // I don't see why to use an int instead of a bool, unless you're programming in C
}
return 0;
}
You said you needed a function that takes a pointer to char and a char as arguments. You can't just pass it some struct. From your code above, I take it CharInfo has a char as member. So pass the char, not the struct. For instance: