void reverse(char *s) char *i = s, *j = s + strlen(s) - 1; while (i < j) char t = *i; *i++ = *j; *j-- = t;