ffs, ffsl, ffsll - find first bit set in a word
#include <strings.h>
int ffs(int i);
#include <string.h>
int ffsl(long int i);
int ffsll(long long int 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 i
.
memchr(3)