---
name: "xo_flush"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/xo_flush"
---

# xo\_flush(3)

flush formatted output from libxo handle

## NAME

**xo\_flush**, **xo\_flush\_h** – flush formatted output from libxo handle

## LIBRARY

library “libxo”

## SYNOPSIS

**#include \<libxo/xo.h\>**

*xo\_ssize\_t*\

**xo\_flush**(*void*);

*xo\_ssize\_t*\

**xo\_flush\_h**(*xo\_handle\_t \*handle*);

## DESCRIPTION

**libxo** buffers data, both for performance and consistency, but also to allow some advanced features to work properly. At various times, the caller may wish to flush any data buffered within the library. The **xo\_flush**() function is used for this.

## SEE ALSO

[xo\_emit(3)](/xo_emit/3.md), [libxo(3)](/libxo/3.md)

## HISTORY

The **libxo** library first appeared in FreeBSD 11.0.

## AUTHORS

**libxo** was written by Phil Shafer ⟨*phil@freebsd.org*⟩.
