home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
compat
/
string
/
ffs.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-04-02
|
250 b
|
21 lines
#include <stdio.h>
int ffs(int);
void d(int x)
{
printf("ffs(0x%08x) = %d\n", x, ffs(x));
}
int
main(void)
{
d(0x00000000);
d(0x00000001);
d(0x00000002);
d(0x00000005);
d(0x00010000);
d(0x00010010);
return 0;
}