diff options
| author | daniel-Jones <daniel@danieljon.es> | 2018-10-16 21:35:35 +1030 | 
|---|---|---|
| committer | daniel-Jones <daniel@danieljon.es> | 2018-10-16 21:35:35 +1030 | 
| commit | 0cd49451688077dca4ecbc9c346af848b530769c (patch) | |
| tree | ac434e8b1a4efbd6e71b8e733dbd0ccf15ed3bb1 | |
| parent | 6bedb1aeec8b2fc40b6729ab178127980143f64b (diff) | |
| download | replace-0cd49451688077dca4ecbc9c346af848b530769c.tar.gz replace-0cd49451688077dca4ecbc9c346af848b530769c.zip | |
added replaceinmemory() example
| -rw-r--r-- | README.md | 12 | 
1 files changed, 11 insertions, 1 deletions
| @@ -43,5 +43,15 @@ 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. -See main.c for a usage example +```` +char *replaced = replaceinmemory("this string this string is a test string", "string", "word"); +if (!replaced) +	puts("failed replacing word"); +else +	puts(replaced); +free(replaced); /* you must free the returned memory pointer */ +```` + +See main.c for a usage examples | 
