libc.info: ffs

Go forward to unctrl
Go up to Misc
Go to the top op libc

`ffs'--find first bit set in a word

   *Synopsis*
     int ffs(int WORD);
   *Description*
`ffs' returns the first bit set in a word.
*Returns*
`ffs' returns 0 if C is 0, 1 if C is odd, 2 if C is a multiple of 2,
etc.
*Portability*
`ffs' is not ANSI C.
   No supporting OS subroutines are required.