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

#include <sys/types.h>
#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) ;
}