ffs(3C) SDK R4.11 ffs(3C)
NAME
ffs - find first set bit
SYNOPSIS
#include <string.h>
int ffs(const int i);
DESCRIPTION
ffs finds the first bit set in the argument passed it and returns the
index of that bit. Bits are numbered starting at 1 from the low
order bit. A return value of zero indicates that the value passed is
zero.
Considerations for Threads Programming
+---------+-----------------------------+
| | async- |
|function | reentrant cancel cancel |
| | point safe |
+---------+-----------------------------+
|ffs | Y N N |
+---------+-----------------------------+
SEE ALSO
reentrant(3), string(3C).
Licensed material--property of copyright holder(s)