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

#include <skalibs/cbuffer.h>

size_t cbuffer_wseek (cbuffer *b, size_t len)
{
  size_t max = cbuffer_available(b) ;
  if (len > max) len = max ; 
  return cbuffer_WSEEK(b, len) ;
}