ffs − find first bit set
int ffs(int x);
x
the word to search
This is defined the same way as the libc and compiler builtin ffs routines, therefore differs in spirit from the above ffz (man ffs).