summaryrefslogtreecommitdiff
path: root/src/passwd
diff options
context:
space:
mode:
Diffstat (limited to 'src/passwd')
-rw-r--r--src/passwd/fgetpwent.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/passwd/fgetpwent.c b/src/passwd/fgetpwent.c
new file mode 100644
index 00000000..e95fdb2c
--- /dev/null
+++ b/src/passwd/fgetpwent.c
@@ -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);
+}