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 rhost(3N). The name is null-terminated.
SEE ALSO
Version 2.4 — May 08, 1986