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.
On success, getutent_r() shall return 0 and set
the location referenced by result to a pointer
to buffer. Otherwise, getutent_r()
-1 and set the location referenced
by result to