Go to the first, previous, next, last section, table of contents.
CALL HostNm(Name, Status)
Name: CHARACTER
; scalar; INTENT(OUT).
Status: INTEGER(KIND=1)
; OPTIONAL; scalar; INTENT(OUT).
Intrinsic groups: unix
.
Description:
Fills Name with the system's host name returned by
gethostname(2)
.
If the Status argument is supplied, it contains
0 on success or a non-zero error code upon return
(ENOSYS
if the system does not provide gethostname(2)
).
Some non-GNU implementations of Fortran provide this intrinsic as only a function, not as a subroutine, or do not support the (optional) Status argument.
For information on other intrinsics with the same name: See section HostNm Intrinsic (function).
Go to the first, previous, next, last section, table of contents.