cbuffer_rseek.c (194B)
1 /* ISC license. */ 2 3 #include <skalibs/cbuffer.h> 4 5 size_t cbuffer_rseek (cbuffer *b, size_t len) 6 { 7 size_t max = cbuffer_len(b) ; 8 if (len > max) len = max ; 9 return cbuffer_RSEEK(b, len) ; 10 }
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |