Manpages

Manpage of FFS

FFS

Section: Linux Programmer's Manual (3 )
Updated: 1993-04-13
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 0 if no bits are set.  

CONFORMING TO

BSD 4.3, SUSv2

According to SUSv2, this function is defined in <strings.h>.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO

This document was created by man2html, using the manual pages.
Time: 16:40:30 GMT, April 25, 2024