ffs

Finds the index of the first bit set in a string.

Format

#include  <strings.h>

int ffs  (int iteger);

Arguments

integer
The integer to be examined for the first bit set.

Description

This 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).

Return Values
The index of the first bit set. 
If index is 0. 


Previous Page | Next Page | Table of Contents | Index