How do you reverse a string in C or C++ without requiring a separate buffer to hold the reversed string?
In case you are using GLib, it has two functions for that, g_strreverse() and g_utf8_strreverse()