1#define _GNU_SOURCE 2#include "pwf.h" 3 4struct group* fgetgrent(FILE* f) { 5 static char *line, **mem; 6 static struct group gr; 7 struct group* res; 8 size_t size = 0, nmem = 0; 9 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); 10 return res; 11} 12