summaryrefslogtreecommitdiff
path: root/src/libstddjb/iobufferu_flush.c
blob: ad0fd9ef21a2e1bcbb77284dba8e04eef45324f5 (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)
{
  int r = buffer_flush(&b->b[1]) ;
  b->b[0].c.p = b->b[1].c.p ;
  return r ;
}