]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.c
define BUCK2OBJ_INITIAL_MAX_LEN
[libucw.git] / lib / fastbuf.c
index 0929f101a9c8a959bda89abe1c892711fe643051..bf887a18f86acd33ae61603a62486b5a2fbf34b5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     Sherlock Library -- Fast Buffered I/O
  *
- *     (c) 1997--2000 Martin Mares <mj@ucw.cz>
+ *     (c) 1997--2004 Martin Mares <mj@ucw.cz>
  *
  *     This software may be freely distributed and used according to the terms
  *     of the GNU Lesser General Public License.
@@ -335,3 +335,10 @@ bconfig(struct fastbuf *f, uns item, int value)
 {
   return f->config ? f->config(f, item, value) : -1;
 }
+
+void
+brewind(struct fastbuf *f)
+{
+  bflush(f);
+  bsetpos(f, 0);
+}