How to write function that removes sub from string a?
For example if string is "Hi I am a noob very big noob"
and sub is "noob"
. It would become "Hi I am a very big "
I think I must use strstr
and strcat
but how?
How to write function that removes sub from string a?
For example if string is "Hi I am a noob very big noob"
and sub is "noob"
. It would become "Hi I am a very big "
I think I must use strstr
and strcat
but how?