ffs, ffsl, ffsll - find first bit set in a word
#include <strings.h> int ffs(int i); #include <string.h> int ffsl(long i); int ffsll(long long i);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
These functions return the position of the first bit set, or 0 if no bits are set in
BSD systems have a prototype in
This page is part of release 5.10 of the Linux
man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.