fgetgrent man page on CentOS

Man page or keyword search:  
man Server   8420 pages
apropos Keyword Search (all sections)
Output format
CentOS logo
[printable version]

FGETGRENT(3)		   Linux Programmer's Manual		  FGETGRENT(3)

NAME
       fgetgrent - get group file entry

SYNOPSIS
       #include <stdio.h>
       #include <sys/types.h>
       #include <grp.h>

       struct group *fgetgrent(FILE *stream);

DESCRIPTION
       The  fgetgrent()	 function  returns a pointer to a structure containing
       the group information from the file  stream.   The  first  time	it  is
       called  it  returns  the first entry; thereafter, it returns successive
       entries.	 The file stream must have the same format as /etc/group.

       The group structure is defined in <grp.h> as follows:

	      struct group {
		      char    *gr_name;	       /* group name */
		      char    *gr_passwd;      /* group password */
		      gid_t   gr_gid;	       /* group ID */
		      char    **gr_mem;	       /* group members */
	      };

RETURN VALUE
       The fgetgrent() function returns the group  information	structure,  or
       NULL if there are no more entries or an error occurs.

ERRORS
       ENOMEM Insufficient memory to allocate group information structure.

CONFORMING TO
       SVr4

SEE ALSO
       endgrent(3),  fgetgrent_r(3),  getgrent(3),  getgrgid(3),  getgrnam(3),
       putgrent(3), setgrent(3)

GNU				  1993-04-04			  FGETGRENT(3)
[top]

List of man pages available for CentOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net