1 .\" Copyright 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .TH PUTGRENT 3 2003-09-09 "GNU" "Linux Programmer's Manual"
6 putgrent \- write a group database entry to a file
12 .BI "int putgrent(const struct group *" grp ", FILE *" fp );
16 function is the counterpart for
18 The function writes the content of the provided \fIstruct group\fP into the
21 The list of group members must be NULL-terminated or NULL-initialized.
23 The \fIstruct group\fP is defined as follows:
28 char *gr_name; /* group name */
29 char *gr_passwd; /* group password */
30 gid_t gr_gid; /* group ID */
31 char **gr_mem; /* group members */
36 The function returns zero on success, and a nonzero value on error.
38 This function is a GNU extension.
43 .BR feature_test_macros (7)