summaryrefslogtreecommitdiffstats
path: root/dstring.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-05-22 13:14:27 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-05-22 13:14:27 -0400
commita36577183430607196e88c2b951f2dc71a06dbaf (patch)
treec523e4dff632214692dd93a417ee889a7623c9d3 /dstring.h
parent120fc56d436a4b8791fc82389192a6ca2efdece5 (diff)
downloadbfs-a36577183430607196e88c2b951f2dc71a06dbaf.tar.xz
dstring: Clean up the API a bit.
Diffstat (limited to 'dstring.h')
-rw-r--r--dstring.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dstring.h b/dstring.h
index 7e46da8..cd867ad 100644
--- a/dstring.h
+++ b/dstring.h
@@ -65,17 +65,17 @@ int dstresize(char **dstr, size_t length);
int dstrcat(char **dest, const char *src);
/**
- * Append to a dynamic string at a particular offset.
+ * Append to a dynamic string.
*
* @param dest
* The destination dynamic string.
- * @param pos
- * The offset at which to append.
* @param src
* The string to append.
+ * @param n
+ * The maximum number of characters to take from src.
* @return 0 on success, -1 on failure.
*/
-int dstrcatat(char **dest, size_t pos, const char *src);
+int dstrncat(char **dest, const char *src, size_t n);
/**
* Free a dynamic string.