---
name: "iob_addbuf_free"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/iob_addbuf_free"
---

# iob\_addbuf\_free(3)

add buffer to I/O batch, with deallocation

## NAME

iob\_addbuf\_free - add buffer to I/O batch, with deallocation

## SYNTAX

**#include \<libowfat/iob.h\>**

int **iob\_addbuf\_free**(io\_batch\* b,const void\* buf,uint64 n);

## DESCRIPTION

iob\_addbuf\_free schedules *n* bytes starting at *buf* to be written with the I/O batch *b*.

The buffer will automatically be deallocated by **iob\_reset**.

## RETURN VALUE

Returns 1 if successful, 0 if not.  In the failure case, the buffer was deallocated.

## SEE ALSO

[iob\_reset(3)](/iob_reset/3.md), [iob\_send(3)](/iob_send/3.md), [iob\_addbuf(3)](/iob_addbuf/3.md), [iob\_adds(3)](/iob_adds/3.md), [iob\_addfile(3)](/iob_addfile/3.md)
