diff options
Diffstat (limited to 'src/lib/libc/string/ffs.3')
| -rw-r--r-- | src/lib/libc/string/ffs.3 | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/lib/libc/string/ffs.3 b/src/lib/libc/string/ffs.3 index 6464bea2b1..27b26969e5 100644 --- a/src/lib/libc/string/ffs.3 +++ b/src/lib/libc/string/ffs.3 | |||
| @@ -11,11 +11,7 @@ | |||
| 11 | .\" 2. Redistributions in binary form must reproduce the above copyright | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| 12 | .\" notice, this list of conditions and the following disclaimer in the | 12 | .\" notice, this list of conditions and the following disclaimer in the |
| 13 | .\" documentation and/or other materials provided with the distribution. | 13 | .\" documentation and/or other materials provided with the distribution. |
| 14 | .\" 3. All advertising materials mentioning features or use of this software | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| 15 | .\" must display the following acknowledgement: | ||
| 16 | .\" This product includes software developed by the University of | ||
| 17 | .\" California, Berkeley and its contributors. | ||
| 18 | .\" 4. Neither the name of the University nor the names of its contributors | ||
| 19 | .\" may be used to endorse or promote products derived from this software | 15 | .\" may be used to endorse or promote products derived from this software |
| 20 | .\" without specific prior written permission. | 16 | .\" without specific prior written permission. |
| 21 | .\" | 17 | .\" |
| @@ -31,10 +27,9 @@ | |||
| 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 32 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
| 33 | .\" | 29 | .\" |
| 34 | .\" from: @(#)ffs.3 5.3 (Berkeley) 4/19/91 | 30 | .\" $OpenBSD: ffs.3,v 1.5 2007/05/31 19:19:32 jmc Exp $ |
| 35 | .\" $Id: ffs.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $ | ||
| 36 | .\" | 31 | .\" |
| 37 | .Dd April 19, 1991 | 32 | .Dd $Mdocdate: May 31 2007 $ |
| 38 | .Dt FFS 3 | 33 | .Dt FFS 3 |
| 39 | .Os | 34 | .Os |
| 40 | .Sh NAME | 35 | .Sh NAME |
| @@ -47,12 +42,10 @@ | |||
| 47 | .Sh DESCRIPTION | 42 | .Sh DESCRIPTION |
| 48 | The | 43 | The |
| 49 | .Fn ffs | 44 | .Fn ffs |
| 50 | function | 45 | function finds the first bit set in |
| 51 | finds the first bit set in | ||
| 52 | .Fa value | 46 | .Fa value |
| 53 | and returns the index of that bit. | 47 | and returns the index of that bit. |
| 54 | Bits are numbered starting from 1, starting at the right-most | 48 | Bits are numbered starting from 1, starting at the rightmost bit. |
| 55 | bit. | ||
| 56 | A return value of 0 means that the argument was zero. | 49 | A return value of 0 means that the argument was zero. |
| 57 | .Sh SEE ALSO | 50 | .Sh SEE ALSO |
| 58 | .Xr bitstring 3 | 51 | .Xr bitstring 3 |
