mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-09 19:10:48 +00:00
36 lines
666 B
Markdown
36 lines
666 B
Markdown
% notcurses_util(3)
|
|
% nick black <nickblack@linux.com>
|
|
% v2.4.5
|
|
|
|
# NAME
|
|
|
|
notcurses_util - portable utility functions
|
|
|
|
# SYNOPSIS
|
|
|
|
**#include <notcurses/notcurses.h>**
|
|
|
|
**char* notcurses_accountname(void);**
|
|
|
|
**char* notcurses_hostname(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.
|
|
|
|
# NOTES
|
|
|
|
# RETURN VALUES
|
|
|
|
All functions return ***NULL*** on error.
|
|
|
|
# SEE ALSO
|
|
|
|
**hostname(1)**,
|
|
**notcurses(3)**
|