>>510
void reverse(char *p)
{
char *p2 = p, tmp;

while(*p2) p2++;

while(p < --p2) {
tmp = *p;
*p++ = *p2;
*p2 = tmp;
}
}