aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
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.