FFS
Section: Linux Programmer's Manual (3)
Updated: April 13, 1993
Index
Return to Main Contents
NAME
ffs - find first bit set in a word
SYNOPSIS
#include <string.h>
int ffs(int i);
DESCRIPTION
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.
RETURN VALUE
The ffs() function returns the position of the first bit set,
or NULL if no bits are set.
CONFORMING TO
BSD 4.3
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- CONFORMING TO
-
This document was created by
man2html,
using the manual pages.
Time: 12:23:56 GMT, March 22, 2025