osx - C: Search and Replace/Delete -


is there function in c lets search particular string , delete/replace it? if not, how do myself?

it can dangerous search , replace - unless replacing single chars char (ie change 'a' 'b'). reason being replaced value try , make char array longer. better copy string , replace new char array can hold result. find c function in strstr(). can find string - copy before buffer, add replacement buffer - , repeat.


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -