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.
 
 
 
 

11 lines
210 B

#include "byte.h"
#include "buffer.h"
ssize_t buffer_peekc(buffer* b,char* x) {
if (b->p==b->n) {
register ssize_t blen;
if ((blen=buffer_feed(b))<=0) return blen;
}
*x=b->x[b->p];
return 1;
}