proc_hostname()

The system's host name

Syntax:

int proc_hostname(char *s);

Arguments:

Name Description
s buffer to put the hostname

Description:

The system's host name, such as host.domain.com.

Return Values:

On success, returns the hostname length. On error, -1 is returned.

See Also:

proc_domainname(), proc_ip()



INDEX