summaryrefslogtreecommitdiff
path: root/src/htscharset.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-21 19:31:41 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-21 19:31:41 +0000
commit3e59977b2736dbe9a3c801882ec4f03a43af07b5 (patch)
treea03a1bf17406a22bf1ec5f3ba20c3390f280e9e5 /src/htscharset.h
parent5fd71d61fcdad419f5cd7cb19acd200b4c483b2c (diff)
DOS 8+3 fixes.
Diffstat (limited to 'src/htscharset.h')
-rw-r--r--src/htscharset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/htscharset.h b/src/htscharset.h
index 0551e88..f95213c 100644
--- a/src/htscharset.h
+++ b/src/htscharset.h
@@ -101,6 +101,14 @@ extern size_t hts_stringLengthUTF8(const char *s);
extern size_t hts_copyStringUTF8(char *dest, const char *src,
size_t nBytes);
+/**
+ * Append at most 'nBytes' bytes from src to dest, not truncating UTF-8
+ * sequences.
+ * Returns the number of bytes appended, not including the terminating \0.
+ **/
+extern size_t hts_appendStringUTF8(char *dest, const char *src,
+ size_t nBytes);
+
/* WIN32 specific. */
#ifdef _WIN32