1 .\" Copyright 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH PUTGRENT 3 2003-09-09 "GNU" "group Database Access"
6 putgrent \- write a group database entry to a file
12 .BI "int putgrent(const struct group *" grp ", FILE *" fp );
17 function is the counterpart for
19 The function writes the content of the provided struct group into the
22 The list of group members must be NULL terminated or NULL initialized.
24 The struct group is defined as follows:
29 char *gr_name; /* group name */
30 char *gr_passwd; /* group password */
31 gid_t gr_gid; /* group id */
32 char **gr_mem; /* group members */
37 The function returns zero on success, and a non-zero value on error.