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

#include <skalibs/cbuffer.h>

size_t cbuffer_unput (cbuffer *b, size_t len)
{
  size_t max = cbuffer_len(b) ;
  if (len > max) len = max ;
  return cbuffer_UNPUT(b, len) ;
}