summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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