1FFS(3) 386BSD Programmer's Manual FFS(3) 2 3NNAAMMEE 4 ffffss - find first bit set in a bit string 5 6SSYYNNOOPPSSIISS 7 ##iinncclluuddee <<ssttrriinngg..hh>> 8 9 _i_n_t 10 ffffss(_i_n_t _v_a_l_u_e) 11 12DDEESSCCRRIIPPTTIIOONN 13 The ffffss() fucntion finds the first bit set in _v_a_l_u_e and returns the index 14 of that bit. Bits are numbered starting from 1, starting at the right- 15 most bit. A return value of 0 means that the argument was zero. 16 17SSEEEE AALLSSOO 18 bitstring(3) 19 20HHIISSTTOORRYY 21 The ffffss() function appeared in 4.3BSD. 22 23BSD Experimental April 19, 1991 1 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67