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_putsnoflush.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_putsnoflush.c')
-rw-r--r-- | src/libstddjb/buffer_putsnoflush.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/buffer_putsnoflush.c b/src/libstddjb/buffer_putsnoflush.c new file mode 100644 index 0000000..ad6b372 --- /dev/null +++ b/src/libstddjb/buffer_putsnoflush.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include <skalibs/bytestr.h> +#include <skalibs/buffer.h> + +int buffer_putsnoflush (buffer *b, char const *s) +{ + return buffer_putnoflush(b, s, str_len(s)) ; +} |