Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
247 B

#include "byte.h"
#include "buffer.h"
int buffer_get(buffer* b,char* x,unsigned long int len) {
int blen;
if ((blen=buffer_feed(b))>=len)
blen=len;
if (blen<=0) return blen;
byte_copy(x,blen,b->x+b->p);
b->p+=blen;
return blen;
}