summaryrefslogblamecommitdiff
path: root/src/passwd/fgetgrent.c
blob: 7d045fd22be977aa47eaed0890c5ce8b39af9bcc (plain) (tree)
1
2
3
4
5
6
7
8
9
                   





                                 
                          
                              

                                                              
 
#define _GNU_SOURCE
#include "pwf.h"

struct group *fgetgrent(FILE *f)
{
	static char *line, **mem;
	static struct group gr;
	struct group *res;
	size_t size=0, nmem=0;
	__getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res);
	return res;
}