FFS
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
ffs
- find first bit set in a bit string
SYNOPSIS
Fd #include <string.h>
Ft int
Fn ffs int value
DESCRIPTION
The
Fn ffs
function
finds the first bit set in
Fa value
and returns the index of that bit.
Bits are numbered starting from 1, starting at the right-most
bit.
A return value of 0 means that the argument was zero.
SEE ALSO
bitstring(3)
HISTORY
The
Fn ffs
function appeared in
BSD 4.3
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 15:52:54 GMT, January 15, 2023