From effe4db8a69d475ae77bb7bf85bf53c009445d0e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 2 Jun 2015 14:08:00 +0000 Subject: Turn non-linear buffer macros calling str_len() into functions. >.> --- src/libstddjb/buffer_putsall.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/libstddjb/buffer_putsall.c (limited to 'src/libstddjb/buffer_putsall.c') diff --git a/src/libstddjb/buffer_putsall.c b/src/libstddjb/buffer_putsall.c new file mode 100644 index 0000000..dbd306c --- /dev/null +++ b/src/libstddjb/buffer_putsall.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include +#include + +int buffer_putsall (buffer *b, char const *s, unsigned int *w) +{ + return buffer_putall(b, s, str_len(s), w) ; +} -- cgit v1.2.3