【學習總結】模擬實現strcpy和strlen函數以及幾個需要注意的點

如有不足還請指正。 模擬實現strcpy和strlen函數的幾個注意點 資料:《高質量C++/C編程》 在模擬實現函數的過程中,不只要只實現個功能,還要注重如何讓代碼更加健壯! 先來給出code,下面再詳細解釋: #include <stdio.h> #include <string.h> #include <assert.h> char* my_strcpy(char *str_dest, c
相關文章
相關標籤/搜索