Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
group-name ( id -- string )
Vocabulary
unix.groups
Inputs and outputs
id
an
integer
string
a
string
Word description
Returns the group name given a group id.
Definition
USING:
accessors
assocs
kernel
math.parser
namespaces
;
IN:
unix.groups
:
group-name
( id -- string )
dup
group-cache
get
[
?at
[
name>>
]
[
number>string
]
if
]
[
group-struct
[
gr_name>>
]
[
f
]
if*
]
if*
[
]
[
number>string
]
?if
;