FFS(3) BSD Programmer's Manual FFS(3) NNAAMMEE ffffss - find first bit set in a bit string SSYYNNOOPPSSIISS ##iinncclluuddee <<ssttrriinngg..hh>> _i_n_t ffffss(_i_n_t _v_a_l_u_e); DDEESSCCRRIIPPTTIIOONN The ffffss() fucntion finds the first bit set in _v_a_l_u_e and returns the index of that bit. Bits are numbered starting from 1, starting at the right- most bit. A return value of 0 means that the argument was zero. SSEEEE AALLSSOO bitstring(3) HHIISSTTOORRYY The ffffss() function appeared in 4.3BSD. 4.4BSD June 4, 1993 1