模擬實現strcpy

strcpyc++ void my_strcpy(char *pdest, char *psrc) { while (*psrc != '\0') { *(pdest++) = *(psrc++); } *pdest = *psrc; } int main() { char arr[20] = { 0 }; my_strcpy(arr, "hello world"); print
相關文章
相關標籤/搜索