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

# iob\_addbuf(3)

add buffer to I/O batch

## NAME

iob\_addbuf - add buffer to I/O batch

## SYNTAX

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

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

## DESCRIPTION

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

Use **iob\_addbuf\_free** if you want the buffer to be deallocated automatically by **iob\_reset**.

## RETURN VALUE

Returns 1 on success, 0 on failure.

## SEE ALSO

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