LIBXO(3)
π LIBXO(3) β Library Functions Manual π
okay so bestie, this is the libxo page for xo_set_style and xo_set_style_name, and it's literally all about setting the output style for a libxo handle. group-chat energy, but make it Unix. π«Ά
β¨ NAME β¨
xo_set_style, xo_set_style_name β set the output style for a libxo handle
π LIBRARY π
library βlibxoβ
πΈ SYNOPSIS πΈ
#include <libxo/xo.h>
void
xo_set_style(xo_handle_t *handle, unsigned style);
int
xo_set_style_name(xo_handle_t *handle, const char *style);
π DESCRIPTION π
okay so xo_set_style() is the main character here: it sets the output style for a handle. if you want to use the default handle, just pass a NULL handle and let it do its thing. π
the set of output styles used by libxo is lowkey iconic:
XO_STYLE_TEXTβ Traditional text outputXO_STYLE_XMLβ XML encoded dataXO_STYLE_JSONβ JSON encoded dataXO_STYLE_HTMLβ HTML encoded data
and xo_set_style_name()? obsessed. it sets the style based on a name encoded as a string. the name can be any of the styles: "text", "xml", "json", or "html". periodt. π
EXAMPLE:
xo_set_style_name(NULL, "html");
π¦ SEE ALSO π¦
β HISTORY β
the libxo library first appeared in FreeBSD 11.0. no cap.
π AUTHORS π
libxo was written by Phil Shafer <phil@freebsd.org>. iconic behavior, honestly. π
π cute little sign-off: this page is from Debian, dated December 4, 2014, and tagged LIBXO(3). slay. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2014, Juniper Networks, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms