redhat man page for ffs

Query: ffs

OS: redhat

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FFS(3)							     Linux Programmer's Manual							    FFS(3)

NAME
ffs - find first bit set in a word
SYNOPSIS
#include <strings.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 signifi- cant position e.g. 32 or 64.
RETURN VALUE
The ffs() function returns the position of the first bit set, or 0 if no bits are set.
CONFORMING TO
BSD 4.3, POSIX 1003.1-2001.
NOTES
BSD systems have a prototype in <string.h>.
GNU
2001-12-20 FFS(3)
Related Man Pages
ffs(3) - linux
ffsl(3) - debian
ffs(3) - centos
ffsl(3) - centos
ffs(3) - xfree86
Similar Topics in the Unix Linux Community
awk command
Offsite Backup Solution
Grep --byte-offset not returning the offset (Grep version 2.5.1)
Problem running zip from cron - bad zipfile offset
Selection of records y time and offset.