GETHOSTNAME(2) — Silicon Graphics
NAME
gethostname − get name of current host
SYNOPSIS
gethostname (hostname, sizeof (hostname));
char hostname[32];
DESCRIPTION
gethostname returns the standard host name for the current processor, as set by sethostname(2) and defined in sys_id(4). The name is null-terminated.
SEE ALSO
Version 2.5r1 — October 29, 1986