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

  man pages->Tru64 Unix man pages -> ffs (3)              



NAME    [Toc]    [Back]

       ffs - Find first set bit

SYNOPSIS    [Toc]    [Back]

       #include <strings.h>

       int ffs(
               int pattern );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       ffs():  XPG4-UNIX

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Specifies the bit pattern searched.

DESCRIPTION    [Toc]    [Back]

       The ffs() function finds the first bit set (beginning with
       the least significant bit) and returns the index  of  that
       bit.  Bits  are numbered starting at 1 (the least significant
 bit). If pattern is 0 (zero), ffs() returns 0.

SEE ALSO    [Toc]    [Back]

       Standards: standards(5)

[ Back ]
 Similar pages
Name OS Title
ffs FreeBSD find first bit set in a bit string
ffs OpenBSD find first bit set in a bit string
find HP-UX find files
ffs NetBSD find first bit set in a bit string
find IRIX find files
ffs Linux find first bit set in a word
rfind IRIX remote find
strstr Tru64 Find a substring
ttyname IRIX find name of a terminal
findblk IRIX find filesystem block
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service