How do you reverse a string in C or C++ without requiring a separate buffer to hold the reversed string?
If you are using ATL/MFC CString, simply call CString::MakeReverse().
CString
CString::MakeReverse()