Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of FFS

FFS

Section: Linux Programmer's Manual (3)
Updated: April 13, 2025
Index  

NAME

ffs - find first bit set in a word  

SYNOPSIS

#include <string.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 32.  

RETURN VALUE

The ffs() function returns the position of the first bit set, or NULL if no bits are set.  

CONFORMING TO

BSD 4.3


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO

This document was created by using the manual pages.
Time: 11:58:03 GMT, March 24, 2025

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat