mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 09:39:03 -04:00
* ncplane_polyfill_inner: plug memory leak on error paths * [progbar_create] memory leak on error path * ncvisual_polyfill_core: memory leaks on error paths * notcurses_early_init: memory leak on error path * [demo] fix summary table for ASCII #2402 * [sliders] make it work in ASCII #2402 * add ncplane_ascii_box() #2402 * [notcurses-info] use capabilities accessors for blitters
826 B
826 B
% notcurses_util(3) % nick black nickblack@linux.com % v2.4.999
NAME
notcurses_util - portable utility functions
SYNOPSIS
#include <notcurses/notcurses.h>
char notcurses_accountname(void);*
char notcurses_hostname(void);*
char notcurses_osversion(void);*
DESCRIPTION
Notcurses provides some utility functions, usually to abstract away platform-dependent differences.
notcurses_accountname returns a heap-allocated copy of the account name under which the program is running. notcurses_hostname returns a heap-allocated copy of the local host name. notcurses_osversion returns a heap-allocated human-readable representation of the operating system and its version.
NOTES
RETURN VALUES
All functions return NULL on error.
SEE ALSO
hostname(1), notcurses(3)