Reversing C string not in place