Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages

RedHat 9 (Linux i386) - man page for ffs (redhat section 3)

FFS(3)					      Linux Programmer's Manual 				       FFS(3)

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>.
GNU
2001-12-20 FFS(3)


All times are GMT -4. The time now is 12:45 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password