summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-10-27 20:57:06 +0100
committerLars Wirzenius <liw@liw.fi>2010-10-27 20:57:06 +0100
commit50eb3052899128ce5c18ad7fc8797c43e3c47c0a (patch)
tree511e765685b8adba720645a3527d0687116e9ee9
parent66f80ae9a0a43cb4d8eac188eb73114829fdcb42 (diff)
downloaddynstr-50eb3052899128ce5c18ad7fc8797c43e3c47c0a.tar.gz
Further reword the dynstr_memcpy description.
-rw-r--r--dynstr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dynstr.h b/dynstr.h
index 5ae1bc9..302902d 100644
--- a/dynstr.h
+++ b/dynstr.h
@@ -130,10 +130,10 @@ Dynstr *dynstr_cat_many(Dynstr *dynstr, ...);
int dynstr_byte_at(Dynstr *dynstr, size_t offset);
/* Copy contents of a dynamic string into a memory area. If the offset or
- * size extends past the end of the string, the copy is silently truncated
- * to include only as much as actually exists in the string. The rest of the
- * output memory area will be filled with garbage. Return number of bytes
- * actually copied, which may be less than requested, and may be zero. */
+ * size extends past the end of the string, only as much as actually exists
+ * in the string is actually copied. The rest of the output memory area will
+ * be filled with garbage. Return number of bytes actually copied, which may
+ * be less than requested, and may be zero. */
size_t dynstr_memcpy(void *mem, Dynstr *dynstr, size_t offset, size_t size);
/* Create a dynamically allocated C string copy of the dynamic string.