這是一隻間諜小狼 says to YSITD
for(char* i = buf+strlen(buf)-1; i >= buf; i--)...?