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
Post a Comment