or maybe just stop using C-strings altogether. std::string does with its overloaded operators what the str*() family of functions does for C-strings.