C Library Functions - system_getgrgid (3)
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 (3) | June 29, 2025 |
Generated by manServer 1.08 from 878ad6e2-03be-4c5e-9515-5ae3e9fa9f07 using man macros.