4 int putgrent(const struct group *gr, FILE *f)
9 if ((r = fprintf(f, "%s:%s:%d:", gr->gr_name, gr->gr_passwd, gr->gr_gid))<0) goto done;
10 if (gr->gr_mem) for (i=0; gr->gr_mem[i]; i++)
11 if ((r = fprintf(f, "%s%s", i?",":"", gr->gr_mem[i]))<0) goto done;