DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ffs(S)


ffs -- find first set bit

Synopsis

   #include <strings.h>
   

int ffs(const int i);

Description

ffs finds the first bit set in the argument passed it and returns the index of that bit. Bits are numbered starting at 1 from the low order bit. A return value of zero indicates that the value passed is zero.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005