The setgrent function effectively rewinds the group database to allow repeated searches. This function is always successful. No value is returned, and errno is not set.