blob: c41c776bbfc079a1c7c108c1ccbb6574a4f92a98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* ISC license. */
#include <skalibs/buffer.h>
ssize_t buffer_putflush (buffer *b, char const *s, size_t len)
{
ssize_t r = buffer_put(b, s, len) ;
if (r < 0) return -1 ;
if (!buffer_flush(b)) return -1 ;
return r ;
}
|