]> git.ozlabs.org Git - ccan/blobdiff - ccan/block_pool/_info
endian: add constant versions.
[ccan] / ccan / block_pool / _info
index 53afc7bd8826e5a3474392548c1af31458b8559f..d89da5bd1736bc59503d61a46a962210ba9e51ef 100644 (file)
@@ -3,8 +3,7 @@
 #include "config.h"
 
 /**
- * block_pool - An efficient allocator for blocks that don't need to be
- * resized or freed.
+ * block_pool - An efficient allocator for blocks that don't need to be resized or freed.
  *
  * block_pool allocates blocks by packing them into buffers, making the
  * overhead per block virtually zero.  Because of this, you cannot resize or
  *      int array[] = {0,1,1,2,3,5,8,13,21,34};
  *      int *array_copy = block_pool_memdup(bp, array, sizeof(array));
  *
+ *     memset(buffer, 0xff, 4096);
+ *     printf("string = %s\n", string);
+ *     printf("array_copy[0] == %i\n", array_copy[0]);
  *      block_pool_free(bp);
  *    return 0;
  * }
  *
- *     Author: Joey Adams
- *     License: BSD
+ * Author: Joey Adams <joeyadams3.14159@gmail.com>
+ * License: MIT
+ * Version: 0.1
+ * Ccanlint:
+ *     // We actually depend on the LGPL talloc
+ *     license_depends_compat FAIL
  */
 int main(int argc, char *argv[])
 {