*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> ffs (3)              
Title
Content
Arch
Section
 

FFS(3)

Contents


NAME    [Toc]    [Back]

       ffs - find first bit set in a word

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

       int ffs(int i);

DESCRIPTION    [Toc]    [Back]

       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  significant
 position 32.

RETURN VALUE    [Toc]    [Back]

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

CONFORMING TO    [Toc]    [Back]

       BSD 4.3, SUSv2

       According to SUSv2, this function is defined in <strings.h>.



GNU				  1993-04-13				FFS(3)
[ Back ]
 Similar pages
Name OS Title
wordfree Tru64 Perform word expansions
wordexp Tru64 Perform word expansions
boggle NetBSD word search game
boggle OpenBSD word search game
putc IRIX put character or word on a stream
wordexp IRIX perform word expansions
getc IRIX get character or word from a stream
getwc IRIX get wchar_t character or word from a stream
putchar_unlocked Tru64 Write a byte or a word to a stream
putchar Tru64 Write a byte or a word to a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service