If I declare a function like this:
string hash (char* key)
then any change I make to key will also change it's value when the function exits, correct?
I want to make a copy of it in the function so that I can safely change it without changing the original value.
I tried this, but it doesn't work.
char temp = key;
How can it be done?