Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FFS(3)			   Linux Programmer's Manual			FFS(3)

NAME
       ffs - find first	bit set	in a word

SYNOPSIS
       #include	<strings.h>

       int ffs(int i);

DESCRIPTION
       The  ffs()  function  returns  the position of the first	bit set	in the
       word i.	The least significant bit is position 1	and the	most  signifi-
       cant position e.g. 32 or	64.

RETURN VALUE
       The  ffs()  function returns the	position of the	first bit set, or 0 if
       no bits are set.

CONFORMING TO
       BSD 4.3,	POSIX 1003.1-2001.

NOTES
       BSD systems have	a prototype in _string.h_.

GNU				  2001-12-20				FFS(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | CONFORMING TO | NOTES

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ffs&sektion=3&manpath=Red+Hat+Linux%2fi386+9>

home | help