/////// Copying strings /////// #include char *strcpy(char *s, const char *cs) { char *tmp; tmp = s; while (*cs != '\0') *tmp++ = *cs++; *tmp = '\0'; return(s); } int main() { char a[]="abcdef"; char b[7]; strcpy(b,a); cout << "len=" << strlen(a); cout << "copy is " << b << "\n"; return(0); }