summaryrefslogtreecommitdiff
path: root/halibut.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-05-29 20:20:04 +0100
committerSimon Tatham <anakin@pobox.com>2017-05-30 21:59:46 +0100
commit7ed66467ffe6dde9f4ca4975845d129772e4a851 (patch)
treea67cd316a13ec1f7afce8194f5a4e91f8296d1ad /halibut.h
parent2a831de2a4232c4295964f4e048ff27e34a51661 (diff)
downloadhalibut-7ed66467ffe6dde9f4ca4975845d129772e4a851.zip
halibut-7ed66467ffe6dde9f4ca4975845d129772e4a851.tar.gz
halibut-7ed66467ffe6dde9f4ca4975845d129772e4a851.tar.bz2
halibut-7ed66467ffe6dde9f4ca4975845d129772e4a851.tar.xz
New utility function rdaddc_rep().
This is a function I should have introduced a lot earlier while writing the CHM output code, because I ended up with quite a lot of annoying loops to add zero-padding of various sizes by going round and round on the one-byte rdaddc().
Diffstat (limited to 'halibut.h')
-rw-r--r--halibut.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/halibut.h b/halibut.h
index 327562e..a5b6e11 100644
--- a/halibut.h
+++ b/halibut.h
@@ -434,6 +434,7 @@ void rdadd(rdstring *rs, wchar_t c);
void rdadds(rdstring *rs, wchar_t const *p);
wchar_t *rdtrim(rdstring *rs);
void rdaddc(rdstringc *rs, char c);
+void rdaddc_rep(rdstringc *rs, char c, int repeat);
void rdaddsc(rdstringc *rs, char const *p);
void rdaddsn(rdstringc *rc, char const *p, int len);
char *rdtrimc(rdstringc *rs);