setutent
Name
setutent -- access utmp file entries
Description
setutent rewinds the file pointer to the beginning
of the utmp file. It is generally a Good Idea to
call it before any of the other functions.
Errors
On error, (struct utmp*)0 will be returned.
Files
/var/run/utmp database of currently logged-in users
/var/log/wtmp database of past user logins