>>247

strrev(char* str, int n)
{
char* p;
for(p = str+n; p != str; p--)
putchar(*p);
}