File: notcurses_util.3.md

package info (click to toggle)
notcurses 3.0.16%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,776 kB
  • sloc: ansic: 50,385; cpp: 17,806; python: 1,123; sh: 230; makefile: 44
file content (39 lines) | stat: -rw-r--r-- 825 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% notcurses_util(3)
% nick black <nickblack@linux.com>
% v3.0.16

# 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)**