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.
 
 
 
 

13 lines
247 B

  1. #include "byte.h"
  2. #include "buffer.h"
  3. int buffer_get(buffer* b,char* x,unsigned long int len) {
  4. int blen;
  5. if ((blen=buffer_feed(b))>=len)
  6. blen=len;
  7. if (blen<=0) return blen;
  8. byte_copy(x,blen,b->x+b->p);
  9. b->p+=blen;
  10. return blen;
  11. }