X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/e63124bc579bfd97cfe2f620ddd84df9f20477d8..13ee740655965453b2f3fcd7093d2d8b13839903:/struct/dstr-putf.c diff --git a/struct/dstr-putf.c b/struct/dstr-putf.c index aa492e0..c1bde8e 100644 --- a/struct/dstr-putf.c +++ b/struct/dstr-putf.c @@ -27,6 +27,8 @@ /*----- Header files ------------------------------------------------------*/ +#include "config.h" + #include #include #include @@ -49,9 +51,9 @@ */ static int putch(void *out, int ch) - { dstr *d = out; DPUTC(d, ch); return (0); } + { dstr *d = out; DPUTC(d, ch); return (1); } static int putm(void *out, const char *p, size_t sz) - { dstr *d = out; DPUTM(d, p, sz); return (0); } + { dstr *d = out; DPUTM(d, p, sz); return (sz); } static int nputf(void *out, size_t maxsz, const char *p, ...) {