group-id ( string -- id/f )


Vocabulary
unix.groups

Inputs and outputs
stringa string
id/fan integer or f


Word description
Returns the group id given a group name. Returns f if the group does not exist.

Definition
USING: accessors kernel ;

IN: unix.groups

: group-id ( string -- id/f )
group-struct dup [ gr_gid>> ] when ;