add fgetpwent (nonstandard function)
based on patch by Jeremy Huntwork
This commit is contained in:
parent
4619901ec4
commit
5e9314ff03
2 changed files with 14 additions and 0 deletions
9
src/passwd/fgetpwent.c
Normal file
9
src/passwd/fgetpwent.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include "pwf.h"
|
||||
|
||||
struct passwd *fgetpwent(FILE *f)
|
||||
{
|
||||
static char *line;
|
||||
static struct passwd pw;
|
||||
size_t size=0;
|
||||
return __getpwent_a(f, &pw, &line, &size);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue