mirror of
https://github.com/fluencelabs/musl
synced 2025-06-24 12:12:04 +00:00
add fgetpwent (nonstandard function)
based on patch by Jeremy Huntwork
This commit is contained in:
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);
|
||||
}
|
Reference in New Issue
Block a user