]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/doc/mempool.txt
XTypes: Added support to configuration and option parser.
[libucw.git] / ucw / doc / mempool.txt
index 62e06d6701e9441097a1f1e2d49d345146200928..5aa33ddd2e981f4c8d219ceb1841ecfe828c2639 100644 (file)
@@ -112,7 +112,7 @@ This example uses libucw's own IO system, <<fastbuf:,fastbufs>>.
 
   void *stdin_data(struct mempool *pool) {
     struct fastbuf *fb = bopen_fd(0, NULL);     // Read from stdin
-    uint amount;
+    size_t amount;
     char *ptr = mp_start(pool, 1024);
     while(amount = bread(fb, ptr, 1024)) {      // Read a block
       ptr += amount;                            // Move after it