about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
+}