From 68ae296369e85de9cf10a66602d863245f1eee51 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Sun, 14 Oct 2018 13:27:47 +1030 Subject: example output --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 4431400..c52204b 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3