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

  man pages->NetBSD man pages -> ffs (3)              



NAME    [Toc]    [Back]

     ffs - find first bit set in a bit string

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <strings.h>

     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]


HISTORY    [Toc]    [Back]

     The ffs() function appeared in 4.3BSD.

BSD                             April 19, 1994                             BSD
[ 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