summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-10-16 21:36:39 +1030
committerdaniel-Jones <daniel@danieljon.es>2018-10-16 21:36:39 +1030
commitfbf1a63249417c9d9eb0bb51e5db9cd7131bfe95 (patch)
tree89b8331d88a8b396082d2e9a5e1eb0e1257015da
parent0cd49451688077dca4ecbc9c346af848b530769c (diff)
downloadreplace-master.tar.gz
replace-master.zip
fixed exampleHEADmaster
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 96ab6a4..5f06f0a 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ With lines and whatever, replacement string
123replacement string123
ok replacement string ok
````
-Also included a function to replace every occurance of ap lceholder with a string in memory.
+Also included a function to replace every occurance of a placeholder with a string in memory.
````
char *replaced = replaceinmemory("this string this string is a test string", "string", "word");
@@ -54,4 +54,9 @@ else
free(replaced); /* you must free the returned memory pointer */
````
+output
+````
+this word this word is a test word
+````
+
See main.c for a usage examples