Added: ndbuf_free_item manpage;

master
Alexander Vdolainen 6 years ago
parent 68aa01d300
commit 44f7aba37b

@ -1,2 +1,2 @@
man_MANS = ndbuf_new.3 ndbuf_new_palloc.3 ndbuf_new_wmops.3 ndbuf_new_frombuf.3 \
ndbuf_free.3
ndbuf_free.3 ndbuf_free_item.3

@ -0,0 +1 @@
ndbuf_new.3

@ -23,6 +23,8 @@ ndbuf_t *ndbuf_new_wmops(const struct ndbuf_memops *, const size_t);
void ndbuf_free(ndbuf_t *);
void ndbuf_free_item(ndbuf_t *b, void *ip, size_t is);
struct ndbuf_memops {
.br
void *(*alloc)(size_t);
@ -103,6 +105,13 @@ function pointer is provided.
.B NDBUF_RORB
flag is set.
.br
.br
.B void ndbuf_free_item(ndbuf_t*, void*, size_t)
will free allocated item via escan function, if flag
.B NDBUF_BURN
is set and size in't 0 memset() or zero() custom function will be called prior to free. This function is using default memory allocation/deallocation functions or (if provided) custom ones.
.br
.SH RETURN VALUE
.B ndbuf_new
family of functions returns a pointer to newly created

Loading…
Cancel
Save