char * copystring(char *s)
Makes a copy of the string s using the C++ new operator, so it can be deleted with the delete operator.