From fbf1a63249417c9d9eb0bb51e5db9cd7131bfe95 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Tue, 16 Oct 2018 21:36:39 +1030 Subject: fixed example --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3