char* reverse_string(char *s, int size)
{
char *p = s;
for (int i = 0; i < size; i++)
p++;
if (p != s)
{
for (char *q = s; q < p--; q++)
{
char c = *q;
*q = *p;
*p = c;
}
}
return s;
}