#include <stdio.h>
int main(void)
{
char msg[] = "hogefuga";
char *p, *e;
p = e = msg;
while (*++e) ;
e--;
while (p < e) {
char tmp = *p;
*p++ = *e;
*e-- = tmp;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKQp7CgljaGFyIG1zZ1tdID0gImhvZ2VmdWdhIjsKCWNoYXIgKnAsICplOwoKCXAgPSBlID0gbXNnOwoJCglwcmludGYoIiVzXG4iLCBtc2cpOwoKCXdoaWxlICgqKytlKSA7CgllLS07CgkKCXdoaWxlIChwIDwgZSkgewoJCWNoYXIgdG1wID0gKnA7CgkJKnArKyA9ICplOwoJCSplLS0gPSB0bXA7Cgl9CgkKCXByaW50ZigiJXNcbiIsIG1zZyk7CgoJcmV0dXJuIDA7Cn0K