home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
1
/
1350
/
setpwent.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-12-28
|
353 b
|
24 lines
/*
* 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);
}