diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-10-16 21:36:39 +1030 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-10-16 21:36:39 +1030 |
commit | fbf1a63249417c9d9eb0bb51e5db9cd7131bfe95 (patch) | |
tree | 89b8331d88a8b396082d2e9a5e1eb0e1257015da | |
parent | 0cd49451688077dca4ecbc9c346af848b530769c (diff) | |
download | replace-master.tar.gz replace-master.zip |
-rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |