next up previous contents index
Next: GetPid Up: Functions and procedures Previous: GetGid

GetHostName

   

Declaration:

Function GetHostName : String;

Description:

Get the hostname of the machine on which the process is running. An empty string is returned if hostname is not set.

Errors:

None.

See also:

GetDomainName,seemGethostname2

Example
Program Example40;

{ Program to demonstrate the GetHostName function. }

Uses linux;

begin
  Writeln ('Name of this machine is : ',GetHostName);
end.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998