Content-type: text/html Man page of ffs

ffs

Section: C Library Functions (3)
Index Return to Main Contents
 

NAME

ffs - Finds first set bit  

LIBRARY

Standard C Library (libc.so, libc.a)  

SYNOPSIS

#include <strings.h>

int ffs(
        int pattern);  

STANDARDS

Interfaces documented on this reference page conform to industry standards as follows:

ffs():  XPG4-UNIX

Refer to the standards(5) reference page for more information about industry standards and associated tags.  

PARAMETERS

Specifies the bit pattern searched.  

DESCRIPTION

The ffs() function finds the first bit set (beginning with the least significant bit) and returns the index of that bit. Bits are numbered starting at 1 (the least significant bit). If pattern is 0 (zero), ffs() returns 0.  

RELATED INFORMATION

Standards: standards(5)

delim off


 

Index

NAME
LIBRARY
SYNOPSIS
STANDARDS
PARAMETERS
DESCRIPTION
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:41:10 GMT, October 02, 2010