warning: deprecated conversion from string constant to 'char*' [SOLVED]

PaulS:
What about it? If you make the function argument const, what that means is that the function guarantees not to change the pointed to data.

Thanks PaulS for a comprehensive solution!