summaryrefslogtreecommitdiffstats
path: root/dstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'dstring.h')
-rw-r--r--dstring.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/dstring.h b/dstring.h
index d43a1f0..0374447 100644
--- a/dstring.h
+++ b/dstring.h
@@ -1,6 +1,6 @@
/****************************************************************************
* bfs *
- * Copyright (C) 2016-2017 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2016-2019 Tavian Barnes <tavianator@tavianator.com> *
* *
* Permission to use, copy, modify, and/or distribute this software for any *
* purpose with or without fee is hereby granted. *
@@ -32,6 +32,14 @@
char *dstralloc(size_t capacity);
/**
+ * Create a dynamic copy of a string.
+ *
+ * @param str
+ * The NUL-terminated string to copy.
+ */
+char *dstrdup(const char *str);
+
+/**
* Get a dynamic string's length.
*
* @param dstr