LIBXO(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… 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 output
  • XO_STYLE_XML β€” XML encoded data
  • XO_STYLE_JSON β€” JSON encoded data
  • XO_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 πŸ¦‹

xo_emit(3), libxo(3)

⭐ 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