From 7ed66467ffe6dde9f4ca4975845d129772e4a851 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 29 May 2017 20:20:04 +0100 Subject: 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(). --- halibut.h | 1 + 1 file changed, 1 insertion(+) (limited to 'halibut.h') 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); -- cgit v1.1