c語言指針實現字符串拼接

忽然想使用c指針語言實現實現字符串的拼接(盡然還存在內存泄漏問題 太挫了) 如下是代碼實現 僅供參考web #include<stdio.h> #include<string.h> #include<malloc.h> char*addStr(char*pbefore,char*pafter) { int before=strlen(pbefore); int after=strle
相關文章
相關標籤/搜索