---
name: "xo_set_options"
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_set_options"
---

# xo\_set\_options(3)

change options used by a libxo handle

## NAME

**xo\_set\_options** – change options used by a libxo handle

## LIBRARY

library “libxo”

## SYNOPSIS

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

*int*\

**xo\_set\_options**(*xo\_handle\_t \*xop*, *const char \*input*);

## DESCRIPTION

The **xo\_set\_options**() function accepts a comma-separated list of styles and flags and enables them for a specific handle. The options are identical to those listed in [xo\_parse\_args(3)](/xo_parse_args/3.md).

## 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*⟩.
