diff options
| author | Simon Tatham <anakin@pobox.com> | 2017-05-29 20:20:04 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2017-05-30 21:59:46 +0100 |
| commit | 7ed66467ffe6dde9f4ca4975845d129772e4a851 (patch) | |
| tree | a67cd316a13ec1f7afce8194f5a4e91f8296d1ad /halibut.h | |
| parent | 2a831de2a4232c4295964f4e048ff27e34a51661 (diff) | |
| download | halibut-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |