FFS(3) Manuel du programmeur Linux FFS(3)
NOM
ffs - Chercher le premier bit à 1 dans un mot.
SYNOPSIS
#include <string.h>
int ffs (int i);
DESCRIPTION
La fonction ffs() (Find First bit Set) renvoie la position
du premier bit à 1 dans le mot i. Le bit de moindre poids
est en position 1, et le plus signifiant en position 32.
VALEUR RENVOYÉE
La fonction ffs() renvoie la position du premier bit à 1,
ou 0 si aucun bit n'est positionné à 1.
CONFORMITÉ
BSD 4.3
TRADUCTION
Christophe Blaess, 1997.
GNU 23 Octobre 1996 1