---
name: "ixp_write"
section: "3"
platform: "linux"
package: "libixp-dev"
version: "0.6~20121202+hg148-5"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ixp_write"
---

# ixp\_write(3)

## NAME

ixp\_write, ixp\_pwrite

## SYNOPSIS

```
#include <ixp.h>
long ixp_write(IxpCFid *fid, const void *buf, long count);
long ixp_pwrite(IxpCFid *fid, const void *buf, long count, int64_t offset);
```

## PARAMETERS

- buf

  A buffer holding the contents to store.

- count

  The number of bytes to store.

- offset

  The offset at which to write the data.

## DESCRIPTION

ixp\_write and ixp\_pwrite each write *count* bytes of data stored in *buf* to the file pointed to by C\<fid\>. ixp\_write writes its data at its stored offset, and increments it by *count*. ixp\_pwrite writes its data a *offset* and does not alter C\<fid\>'s stored offset.

## RETURN VALUE

These functions return the number of bytes actually written. Any value less than *count* must be considered a failure.

## SEE ALSO

[ixp\_mount(3)](/ixp_mount/3.md), [ixp\_open(3)](/ixp_open/3.md), [ixp\_read(3)](/ixp_read/3.md)
