Manual Reference Pages - system_getgrgid (3m_system)
NAME
system_getgrgid(3f) - [M_system:QUERY] get groupd name associated with a GID
(LICENSE:PD)
CONTENTS
Synopsis
Description
Option
Return Value
Examples
Author
License
SYNOPSIS
function system_getgrgid(gid) result (gname)
class(*),intent(in) :: gid ! any INTEGER type
character(len=:),allocatable :: gname
DESCRIPTION
The system_getlogin() function returns a string containing the group
name associated with the given GID. If no match is found
it returns a null string and sets errno to indicate the error.
OPTION
|
gid |
GID to try to look up associated group for. Can be of any
INTEGER type.
|
|
RETURN VALUE
|
gname |
returns the group name. Blank if an error occurs
|
|
EXAMPLES
Sample program:
program demo_system_getgrgid
use M_system, only : system_getgrgid
use M_system, only : system_getgid
implicit none
character(len=:),allocatable :: name
name=system_getgrgid( system_getgid() )
write(*,("group[",a,"] for ",i0))name,system_getgid()
end program demo_system_getgrgid
Results:
group[default] for 197121
AUTHOR
John S. Urban
LICENSE
Public Domain
| Nemo Release 3.1 | system_getgrgid (3m_system) | March 07, 2025 |
Generated by manServer 1.08 from 2aeb1464-af70-4758-b084-f3571a2dcc52 using man macros.