<strong>#include <stdio.h> #include <stdlib.h> #include <assert.h> //鏈式訪問 char* my_strcpy(char *dest, const char *src) { char *ret = dest; assert(src != NULL); assert(dest != NULL); while (*dest++ = *src++) { ; } return ret; } int main() { char *p = "bit-tech"; char arr[20]; char *ret1=my_strcpy(arr, p); printf("%s\n", ret1); return 0; }</strong>