#include "lib/lib.h"
#include "lib/fastbuf.h"
+#include <stdio.h>
#include <stdlib.h>
static int
return 0;
}
-static void
+static int
fbbuf_seek(struct fastbuf *f, sh_off_t pos, int whence)
{
/* Somebody might want to seek to the end of buffer, try to be nice to him. */
f->bptr = f->buffer + pos;
f->bstop = f->bufend;
f->pos = len;
+ return 1;
}
void