libowfat/io/iob_addbuf_free.3

18 lines
565 B
Groff
Raw Normal View History

2004-03-02 20:02:23 +00:00
.TH iob_addbuf_free 3
.SH NAME
iob_addbuf_free \- add buffer to I/O batch, with deallocation
.SH SYNTAX
2004-03-02 22:41:34 +00:00
.B #include <iob.h>
2004-03-02 20:02:23 +00:00
2012-01-13 02:25:31 +00:00
int \fBiob_addbuf_free\fP(io_batch* b,const void* buf,uint64 n);
2004-03-02 20:02:23 +00:00
.SH DESCRIPTION
iob_addbuf_free schedules \fIn\fR bytes starting at \fIbuf\fR to be
written with the I/O batch \fIb\fR.
The buffer will automatically be deallocated by \fBiob_reset\fR.
2012-01-13 02:25:31 +00:00
.SH "RETURN VALUE"
Returns 1 if successful, 0 if not. In the failure case, the buffer was
deallocated.
2004-03-02 20:02:23 +00:00
.SH "SEE ALSO"
iob_reset(3), iob_send(3), iob_addbuf(3), iob_adds(3), iob_addfile(3)