diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-10-27 20:57:06 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-10-27 20:57:06 +0100 |
commit | 50eb3052899128ce5c18ad7fc8797c43e3c47c0a (patch) | |
tree | 511e765685b8adba720645a3527d0687116e9ee9 | |
parent | 66f80ae9a0a43cb4d8eac188eb73114829fdcb42 (diff) | |
download | dynstr-50eb3052899128ce5c18ad7fc8797c43e3c47c0a.tar.gz |
Further reword the dynstr_memcpy description.
-rw-r--r-- | dynstr.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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. |