ffs man page on OSF1

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
OSF1 logo
[printable version]

ffs(9r)								       ffs(9r)

NAME
       ffs - General: Finds the first set bit in a mask

SYNOPSIS
       int ffs(
	       long mask );

ARGUMENTS
       Specifies a bit mask with 0 (zero) or more bits set.

DESCRIPTION
       The  ffs	 routine  returns the bit position of the first bit you set in
       the mask argument.  The scan proceeds from the least significant bit to
       the most significant bit of the mask.

NOTES
       The  ffs	 routine duplicates the behavior of the ffs instruction on the
       DIGITAL VAX series or computers.	 It is not  present  in	 architectures
       that implement its function in hardware or through compiler inline sub‐
       stitution.

       The ffs routine is useful for translating bits in a bit mask  into  bit
       positions. For example, the signal handling code uses it to analyze the
       signal mask.

RETURN VALUES
       Upon successful completion, ffs returns the bit position of  the	 first
       bit  set	 in the mask. If no bits were set in the mask, ffs returns the
       value 0 (zero).

								       ffs(9r)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net