2021-08-05 03:17:34 +00:00
|
|
|
% notcurses_util(3)
|
|
|
|
% nick black <nickblack@linux.com>
|
2021-10-23 10:36:18 +00:00
|
|
|
% v2.4.8
|
2021-08-05 03:17:34 +00:00
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
notcurses_util - portable utility functions
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
**#include <notcurses/notcurses.h>**
|
|
|
|
|
|
|
|
**char* notcurses_accountname(void);**
|
|
|
|
|
|
|
|
**char* notcurses_hostname(void);**
|
|
|
|
|
2021-10-21 22:35:15 +00:00
|
|
|
**char* notcurses_osversion(void);**
|
|
|
|
|
2021-08-05 03:17:34 +00:00
|
|
|
# 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
|
2021-10-21 22:35:15 +00:00
|
|
|
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.
|
2021-08-05 03:17:34 +00:00
|
|
|
|
|
|
|
# NOTES
|
|
|
|
|
|
|
|
# RETURN VALUES
|
|
|
|
|
|
|
|
All functions return ***NULL*** on error.
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
**hostname(1)**,
|
|
|
|
**notcurses(3)**
|