summaryrefslogtreecommitdiff
path: root/src/libstddjb/cbuffer_unput.c
blob: 8221ca0f8035ba1ed45e073a4e222548d2d52f48 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/cbuffer.h>

unsigned int cbuffer_unput (cbuffer_t *b, unsigned int len)
{
  register unsigned int max = cbuffer_len(b) ;
  if (len > max) len = max ;
  return cbuffer_UNPUT(b, len) ;
}