-->

Previous | Table of Contents | Next

Page 921

BUGS

Linux may not support fpurge.

SEE ALSO

write(2), fopen(3), fclose(3), setbuf(3)

STANDARDS

The fflush function conforms to ANSI C3.159-1989 ("ANSI C").

BSD Man Page, 29 November 1993

ffs

ffs—Finds first bit set in a word

SYNOPSIS

#include <string.h>

int ffs(int i);

DESCRIPTION

The ffs() function returns the position of the first bit set in the word i. The least significant bit is position 1, and the most significant position 32.

RETURN VALUE

The ffs() function returns the position of the first bit set, or NULL if no bits are set.

CONFORMS TO

BSD 4.3

GNU, 13 April 1993

fgetgrent

fgetgrent—Gets group file entry

SYNOPSIS


#include <grp.h>

#include <stdio.h>

#include <sys/types.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 */

};

Previous | Table of Contents | Next