getutxent, getutxid, getutxline - get user accounting database entries
#include <utmpx.h>
struct utmpx *getutxent(void);
struct utmpx *getutxid(const struct utmpx *id);
struct utmpx *getutxline(const struct utmpx *line);
Refer to endutxent().