.\" Automatically generated by Pandoc 3.1.8 .\" .TH "notcurses_util" "3" "v3.0.9" "" "" .SH NAME notcurses_util - portable utility functions .SH SYNOPSIS \f[B]#include \f[R] .PP \f[B]char* notcurses_accountname(void);\f[R] .PP \f[B]char* notcurses_hostname(void);\f[R] .PP \f[B]char* notcurses_osversion(void);\f[R] .SH DESCRIPTION Notcurses provides some utility functions, usually to abstract away platform-dependent differences. .PP \f[B]notcurses_accountname\f[R] returns a heap-allocated copy of the account name under which the program is running. \f[B]notcurses_hostname\f[R] returns a heap-allocated copy of the local host name. \f[B]notcurses_osversion\f[R] returns a heap-allocated human-readable representation of the operating system and its version. .SH NOTES .SH RETURN VALUES All functions return \f[B]\f[BI]NULL\f[B]\f[R] on error. .SH SEE ALSO \f[B]hostname(1)\f[R], \f[B]notcurses(3)\f[R] .SH AUTHORS nick black .