GETLOG(3f)

DESCRIPTION
Gets the username under which the program is running.

STANDARD
GNU extension

CLASS
Subroutine

SYNTAX
CALL GETLOG(C)

ARGUMENTS

C Shall be of type CHARACTER and of default kind.

RETURN VALUE
Stores the current user name in LOGIN. (On systems where POSIX functions geteuid and getpwuid are not available, and the getlogin function is not implemented either, this will return a blank string.)

EXAMPLE
          PROGRAM TEST_GETLOG
            CHARACTER(32) :: login
            CALL GETLOG(login)
            WRITE(*,*) login
          END PROGRAM

SEE ALSO
GETUID

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).