Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 
 

FFS

Section: Linux Programmer's Manual (3)
Updated: 2001-12-20
Index Return to Main Contents
 

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
NOTES

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright.

1999-2008 Linuxinfor.com. No rights reserved.