help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'oldlinux' (#rtl)

GetHostName

Return host name

Declaration

Source position: oldlinux.pp line 1473

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

  

Return current domain name

Example

Program Example40;

{ Program to demonstrate the GetHostName function. }

Uses oldlinux;

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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505