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