1.请用上 strcat的源码 编一个最简单的c程序!急!!被窝读书app源码!!LEDE编译源码选项!易语言缓存源码!
请用上 strcat的源码 编一个最简单的c程序!急!!!!!弱视矫治系统源码!
#include <stdio.h>
#include <string.h>
char
*mystrcat (char* dst,禾匠4.5源码 char* src)
{
char *d;
if (!dst || !src)
return (dst);
d = dst;
for (; *d; d++);
for (; *src; src++)
*d++ = *src;
*d = 0;
return (dst);
}
main()
{
char outstr[];
strcpy(outstr,"she is ");
mystrcat(outstr,"Kitty!");
printf(outstr);
}