home *** CD-ROM | disk | FTP | other *** search
- /*
- * setpwent.c: Rewind password file to beginning for getpwent()
- *
- * Stephen C. Trier
- * March 26, 1990
- *
- * This program is in the public domain
- *
- */
-
- #include <stdio.h>
- #include <pwd.h>
-
- extern FILE *_pw_file;
-
- int setpwent(void)
- {
- if (_pw_file == NULL)
- pw_openfile(NULL);
- return fseek(_pw_file, 0L, SEEK_SET);
- }
-
-