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

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

int iobufferu_flush (iobufferu *b)
{
  register int r = buffer_flush(&b->b[1]) ;
  b->b[0].c.p = b->b[1].c.p ;
  return r ;
}