diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-06-02 14:08:00 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-06-02 14:08:00 +0000 |
commit | effe4db8a69d475ae77bb7bf85bf53c009445d0e (patch) | |
tree | f5b499449afe0a37f96cf7f614199766d1ebef50 /src/libstddjb/buffer_puts.c | |
parent | f476227930793f94e6ca9bd268b76bbf5c4f29c3 (diff) | |
download | skalibs-effe4db8a69d475ae77bb7bf85bf53c009445d0e.tar.xz |
Turn non-linear buffer macros calling str_len() into functions. >.>
Diffstat (limited to 'src/libstddjb/buffer_puts.c')
-rw-r--r-- | src/libstddjb/buffer_puts.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/buffer_puts.c b/src/libstddjb/buffer_puts.c new file mode 100644 index 0000000..aaaac2e --- /dev/null +++ b/src/libstddjb/buffer_puts.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include <skalibs/bytestr.h> +#include <skalibs/buffer.h> + +int buffer_puts (buffer *b, char const *s) +{ + return buffer_put(b, s, str_len(s)) ; +} |