pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
System

System.gethostname()


Method gethostname

string gethostname()

Description

Returns a string with the name of the host.

Note

This function only exists on systems that have the gethostname(2) or uname(2) system calls.

Module reference for Pike v7.8 release 116, 2008-12-31