Computer Science


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

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

GNU                       April 13, 1993                        1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page