9.131. HOSTNM

9.131 HOSTNM — Get system host name

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.

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gfortran/HOSTNM.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部