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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -