Reference

struid(3)

return user name given user number

NAME

struid - return user name given user number

SYNOPSIS

$1$2char* struid(int uid)char* struid(int uid)char* struid(int uid)char* struid(int uid)char* struid(int uid)char* struid(int uid)char* struid(int uid)char* struid(int uid)

DESCRIPTION

struid returns the user id name string given the user number uid. struid maintains an internal cache to avoid repeated password database scans by the low level getpwuid(3).

SEE ALSO

getpwent(3)