0921-0921.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 128 行

HTML
128
字号
<HTML>

<HEAD>

<TITLE>Linux Complete Command Reference:Library Functions:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=03 //-->

<!-- PAGES=0891-1062 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="0916-0920.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0922-0926.html">Next</A></CENTER></P>







<A NAME="PAGENUM-921"><P>Page 921</P></A>





<P><B>BUGS</B>

</P>

<P>Linux may not support fpurge.</P>



<P></B>SEE ALSO</b>

</P>



<P>write(2), fopen(3), fclose(3), setbuf(3)</P>

<P></B>STANDARDS</b>

</P>

<P>The fflush function conforms to ANSI C3.159-1989 (&quot;ANSI C&quot;).

</P>

<P>BSD Man Page, 29 November 1993

</P>

<H3><A NAME="ch03_ 61">

ffs

</A></H3>

<P>ffs&#151;Finds first bit set in a word

</P>

<P><B>SYNOPSIS</b>

</P>

<!-- CODE SNIP //-->

<PRE WIDTH="1">#include &lt;string.h&gt;

int ffs(int i);

</PRE>

<!-- END CODE SNIP //-->

<P><B>DESCRIPTION</b>

</P>

<P>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.

</P>

<P><B>RETURN VALUE</b>

</P>

<P>The ffs() function returns the position of the first bit set, or

NULL if no bits are set.

</P>

<P><B>CONFORMS TO</b>

</P>

<P>BSD 4.3</P>



<P>GNU, 13 April 1993

</P>

<H3><A NAME="ch03_ 62">

fgetgrent

</A></H3>

<P>fgetgrent&#151;Gets group file entry

</P>

<P><B>SYNOPSIS</b>

</P>

<!-- CODE SNIP //-->

<PRE WIDTH="1">

#include &lt;grp.h&gt;

#include &lt;stdio.h&gt;

#include &lt;sys/types.h&gt;

struct group *fgetgrent(FILE *stream);

</PRE>

<!-- END CODE SNIP //-->

<P><B>DESCRIPTION</b>

</P>

<P>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.

</P>

<P>The group structure is defined in &lt;grp.h&gt; as follows:

</P>

<!-- CODE //-->

<PRE WIDTH="1">struct group {

        char    *gr_name;        /* group name */

        char    *gr_passwd;      /* group password */

        gid_t   gr_gid;          /* group id */

        char    **gr_mem;        /* group members */

};

</PRE>

<!-- END CODE //-->







<P><CENTER>

<a href="0916-0920.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0922-0926.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?