标签: c substring strstr
如何编写从字符串a中删除sub的函数?
例如,如果字符串是"Hi I am a noob very big noob"而sub是"noob"。它会变成"Hi I am a very big "
"Hi I am a noob very big noob"
"noob"
"Hi I am a very big "
我想我必须使用strstr和strcat但是如何使用?
strstr
strcat
答案 0 :(得分:1)