aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-08-04 20:01:11 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-08-04 20:01:11 +0200
commit9bf483cde20a67cabd4a56f55f4b96b306690e4e (patch)
treef95df2f63fd79185b692ecde20425705c9f1f568 /README.md
parentfe3c74983c4ffc00d27e72cd76785f7bf2fefb47 (diff)
Updated README.md with dynstr_prepend example
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index e32369b..7b7885c 100644
--- a/README.md
+++ b/README.md
@@ -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.