getutent_r

Name

getutent_r -- access user accounting database entries

Synopsis

int getutent_r(struct utmp * buffer, struct utmp ** result);

Description

The getutent_r() function is a reentrant version of the getutent() function. On entry, buffer should point to a user supplied buffer to which the next entry in the database will be copied, and result should point to a location where the result will be stored.

Return Value

On success, getutent_r() shall return 0 and set the location referenced by result to a pointer to buffer. Otherwise, getutent_r() shall return -1 and set the location referenced by result to NULL.