HOSTNM(3f)

DESCRIPTION
Retrieves the host name of the system on which the program is running.

This intrinsic is provided in both subroutine and function forms; however, only one form can be used in any given program unit.

STANDARD
GNU extension

CLASS
Subroutine, function

SYNTAX

CALL HOSTNM(C [, STATUS]) STATUS = HOSTNM(NAME)

ARGUMENTS

C Shall of type CHARACTER and of default kind. STATUS (Optional) status flag of type INTEGER. Returns 0 on success, or a system specific error code otherwise.

RETURN VALUE
In either syntax, NAME is set to the current hostname if it can be obtained, or to a blank string otherwise.

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).