// strcpy example // source: http://www.cplusplus.com/ #include #include #include #define SIZE 80 int main() { char str1[]="CS50 is about to program the TinySearch Engine (TSE)."; char str2[SIZE]; char str3[SIZE]; strcpy(str2, str1); strcpy(str3, "copy successful"); printf("str1: %s\nstr2: %s\nstr3: %s\n", str1, str2, str3); return EXIT_SUCCESS; }