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
相关文章
相关标签/搜索