#include #define SLEN 20 void Copy(char *Dst, const char *Src) { do { *Dst = *Src; Dst++; } while(*Src++); } int Length(char s[]) { int l = 0; char *p = s; while(*p != 0) { p++; l++; } return l; } void Reverse(char *str, char *str2) { int k = 0; int len = Length(str); for(k=0; k