notcurses_util(3)

notcurses_util3

Portable utility functions

Usage

#include <notcurses/notcurses.h>

char* notcurses_accountname(void);

char* notcurses_hostname(void);

char* notcurses_osversion(void);

Overview

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.

Authors

nick black ⟨[email protected]⟩\c.

From notcurses 3.0.17-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.