diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2006-10-12 15:08:41 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2006-10-12 15:08:41 +0000 |
| commit | 948ec60d362386263573974d691123b39f675c71 (patch) | |
| tree | a52b401aedc1c24f672e77572abab369635d808f /lib/libc/string | |
| parent | 5429f49079504a8479e69d08e0638b434aad2ffa (diff) | |
Notes
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/ffs.3 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/string/ffs.3 b/lib/libc/string/ffs.3 index 7199bf5c9c26..8fc4b22367af 100644 --- a/lib/libc/string/ffs.3 +++ b/lib/libc/string/ffs.3 @@ -34,7 +34,7 @@ .\" @(#)ffs.3 8.2 (Berkeley) 4/19/94 .\" $FreeBSD$ .\" -.Dd January 13, 2004 +.Dd October 12, 2006 .Dt FFS 3 .Os .Sh NAME @@ -60,7 +60,9 @@ The .Fn ffs and .Fn ffsl -functions find the first bit set in +functions find the first bit set +(beginning with the least significant bit) +in .Fa value and return the index of that bit. .Pp @@ -72,8 +74,7 @@ functions find the last bit set in .Fa value and return the index of that bit. .Pp -Bits are numbered starting from 1, starting at the right-most -(least significant) bit. +Bits are numbered starting at 1 (the least significant bit). A return value of zero from any of these functions means that the argument was zero. .Sh SEE ALSO |
