summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-01-29 11:54:18 -0500
committerRich Felker <dalias@aerifal.cx>2012-01-29 11:54:18 -0500
commit5e9314ff03076a94316d4e66efd082548c065f3d (patch)
tree171936f8613c00e4b491ede1f8ae1e34cff61b4f /src
parent4619901ec4b82d233a24e26ef3df01ddadc2d013 (diff)
downloadmusl-5e9314ff03076a94316d4e66efd082548c065f3d.tar.gz
add fgetpwent (nonstandard function)
based on patch by Jeremy Huntwork
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);
+}