blob: 544cbb2ef6a0a6edeb570f0039f9ae88365ae40f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* ISC license. */
#include <skalibs/cbuffer.h>
#include <skalibs/siovec.h>
unsigned int cbuffer_get (cbuffer_t *b, char *s, unsigned int len)
{
siovec_t v[2] ;
cbuffer_rpeek(b, v) ;
return cbuffer_RSEEK(b, siovec_gather(v, 2, s, len)) ;
}
|