Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ffs(3C) — SunOS 5.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

ffs(3C)

NAME

ffs − find first set bit

SYNOPSIS

#include <string.h>

int ffs(const int i);

MT-LEVEL

MT-Safe

DESCRIPTION

ffs() finds the first bit set in the argument passed it and returns the index of that bit.  Bits are numbered starting at 1 from the low order bit.  A return value of zero indicates that the value passed is zero. 

Sun Microsystems  —  Last change: 22 Jan 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026