This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <string.h> | |
char *replace_with(char *dest, char const *old, char const *new) | |
{ | |
size_t tail_len = 0; | |
size_t old_len = strlen(old); | |
size_t new_len = strlen(new); | |
char *match; |