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

#include <skalibs/cbuffer.h>

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