mirror of /home/gitosis/repositories/libowfat.git
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.
14 lines
256 B
14 lines
256 B
#include "byte.h"
|
|
#include "buffer.h"
|
|
|
|
int buffer_getn(buffer* b,char* x,unsigned long int len) {
|
|
int blen;
|
|
|
|
for(blen=0;blen<len;++blen) {
|
|
register int r;
|
|
if ((r=buffer_getc(b,x))<0) return r;
|
|
if (r==0) break;
|
|
++x;
|
|
}
|
|
return blen;
|
|
}
|