GNU/Linux |
CentOS 2.1AS(Slurm) |
|
![]() |
ffs(3) |
![]() |
ffs − find first bit set in a word
#include <string.h>
int ffs(int i);
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.
The ffs() function returns the position of the first bit set, or NULL if no bits are set.
BSD 4.3
![]() |
ffs(3) | ![]() |