#include /* * Make a string in 'to' which is the same characters as in the string 'from' * but in the opposite order. The area pointed to by 'to' must be as large as * required to hold the string in 'from'. */ void reverse(char *from, char *to) { to += strlen(from); *to = '\0'; for (to--; *from; from++, to--) *to = *from; }