diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-08-04 20:01:11 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-08-04 20:01:11 +0200 |
| commit | 9bf483cde20a67cabd4a56f55f4b96b306690e4e (patch) | |
| tree | f95df2f63fd79185b692ecde20425705c9f1f568 /README.md | |
| parent | fe3c74983c4ffc00d27e72cd76785f7bf2fefb47 (diff) | |
Updated README.md with dynstr_prepend example
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,7 @@ int main(const int argc, const char *argv[]) dynstr_init(&s); dynstr_append(&s, "Hello"); dynstr_append(&s, " from %s:%d\n", __func__, __LINE__); + dynstr_prepend(&s, "Hey! "); printf("%s", s.str); dynstr_free(&s); @@ -26,7 +27,7 @@ int main(const int argc, const char *argv[]) Output: ``` -Hello from main:10 +Hey! Hello from main:10 ``` # License See LICENSE file. |
