diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-10-14 13:27:47 +1030 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-10-14 13:27:47 +1030 |
commit | 68ae296369e85de9cf10a66602d863245f1eee51 (patch) | |
tree | 8463c63250184232abad3d8c44f22619e9bcc742 | |
parent | 29c5a14b2b25a1db797bb63d8c2596b91f156a0b (diff) | |
download | replace-68ae296369e85de9cf10a66602d863245f1eee51.tar.gz replace-68ae296369e85de9cf10a66602d863245f1eee51.zip |
example output
-rw-r--r-- | README.md | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -9,5 +9,36 @@ definition in replace.h: int replaceinfile(char *originalfile, char *destinationfile, char *placeholder, char *replacement); // 0 = failure, 1 = success ```` +input.txt + +```` + +Normal text file + +%PLACEHOLDER% +%PLACEHOLDER% +%PLACEHOLDER% + +With lines and whatever, %PLACEHOLDER% + +123%PLACEHOLDER%123 +ok %PLACEHOLDER% ok +```` + +output.txt + +```` + +Normal text file + +replacement string +replacement string +replacement string + +With lines and whatever, replacement string + +123replacement string123 +ok replacement string ok +```` See main.c for a usage example |