gethostname

gethostname — gets the computer's host name.

Syntax

gethostname ()
    

Arguments

none

Returns

The host name of this computer, as a string.

Example

Gamma> gethostname();
"rex"
Gamma>