about summary refs log tree commit diff
path: root/src/passwd
diff options
context:
space:
mode:
Diffstat (limited to 'src/passwd')
-rw-r--r--src/passwd/fgetgrent.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/passwd/fgetgrent.c b/src/passwd/fgetgrent.c
new file mode 100644
index 00000000..2f18d925
--- /dev/null
+++ b/src/passwd/fgetgrent.c
@@ -0,0 +1,9 @@
+#include "pwf.h"
+
+struct group *fgetgrent(FILE *f)
+{
+	static char *line, **mem;
+	static struct group gr;
+	size_t size=0, nmem=0;
+	return __getgrent_a(f, &gr, &line, &size, &mem, &nmem);
+}