concatenate char array in C

后端 未结 7 1674
故里飘歌
故里飘歌 2020-12-05 02:15

I have a a char array:

char* name = \"hello\";

I want to add an extension to that name to make it

hello.txt
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 02:20

    You could copy and paste an answer here, or you could go read what our host Joel has to say about strcat.

提交回复
热议问题