본문 바로가기

strcat()

c언어 strcat #include #include #include char * strcat(char *str1, char *str2) {char *str;int len1,len2;len1=strlen(str1);len2=strlen(str2);str=(char*)malloc(sizeof(char)*(len1+len2)+1);for(int i=0;i 더보기
반응형