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

#include <skalibs/cbuffer.h>

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