Assuming you are not going to change the value of any parameter:
I would have a function definition as:
int IndexOf( const char * const , const char )
{
}
But save the function declaration as:
int IndexOf( const char * , char );
:
const , const .
?
pass-on-value const " " - , .
, , , const .