next up previous contents index
Next: GetDomainName Up: Functions and procedures Previous: Kill

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
Tue Mar 31 16:46:10 CEST 1998