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

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

FFS(3)

Contents


NAME    [Toc]    [Back]

     ffs - find first bit set in a bit string

SYNOPSIS    [Toc]    [Back]

     #include <string.h>

     int
     ffs(int value);

DESCRIPTION    [Toc]    [Back]

     The ffs() function finds the first bit set in value and  returns the index
     of that bit.  Bits are numbered starting from 1, starting at
the rightmost
 bit.  A return value of 0 means that the  argument  was
zero.

SEE ALSO    [Toc]    [Back]

      
      
     bitstring(3)

HISTORY    [Toc]    [Back]

     The ffs() function appeared in 4.3BSD.

OpenBSD      3.6                          April      19,     1991
[ Back ]
 Similar pages
Name OS Title
strlen OpenBSD find length of a string
strlen FreeBSD find length of string
strpbrk Tru64 Find one of a set of bytes in a string
strlen Tru64 Find the length of a string
strlen NetBSD find length of string
wcslen Tru64 Find length of wide-character string
ffs Tru64 Find first set bit
ttyname IRIX find name of a terminal
find HP-UX find files
find IRIX find files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service