From 27d1594517a3d242c5db411fc2f3216c3fc8dec1 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Sun, 14 Oct 2018 13:23:58 +1030 Subject: first code push --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..4431400 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +Convenience function to replace every occurance of a string in a file with a replacement string, outputs to another file. + +Compile with ````make```` and run with ````./example````. + + +definition in replace.h: + +```` +int replaceinfile(char *originalfile, char *destinationfile, char *placeholder, char *replacement); +// 0 = failure, 1 = success +```` + +See main.c for a usage example -- cgit v1.2.3