user-id ( string -- id/f ) (original) (raw)

user-id ( string -- id/f )

Vocabulary
unix.users

Inputs

string a string

Outputs

id/f an integer or f

Word description
Returns the user id associated with the user-name.

Definition

USING: accessors kernel ;

IN: unix.users

: user-id ( string -- id/f ) user-passwd dup [ uid>> ] when ;