hostnm_(name)

Purpose

The hostnm_ function retrieves the machine's host name NAME. NAME has a maximum length of 63 characters.

For greater portability, use the GET_ENVIRONMENT_VARIABLE intrinsic instead of this procedure.

Class

Function

Argument type and attributes

name
CHARACTER(X), INTENT(OUT)

X can be in the range of 1 to 63.

Result type and attributes

INTEGER(4).

Result value

The returned value is 0 if the host name is found, and an error number otherwise.