summaryrefslogtreecommitdiff
path: root/src/passwd/fgetpwent.c
blob: eb47b2a119379b4df9d5c0d1c06d463723cd2ebb (plain)
1
2
3
4
5
6
7
8
9
10
#define _GNU_SOURCE
#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);
}