summaryrefslogtreecommitdiff
path: root/src/libstddjb/iobufferu_fill.c
blob: 78674449ef4d4221ed4ef9cadeab7901850cb08f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/buffer.h>
#include <skalibs/iobuffer.h>

ssize_t iobufferu_fill (iobufferu *b)
{
  ssize_t r = buffer_fill(&b->b[0]) ;
  b->b[1].c.n = b->b[0].c.n ;
  return r ;
}