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:
C/C++ Source or Header  |  1995-04-02  |  250 b   |  21 lines

  1. #include <stdio.h>
  2.  
  3. int ffs(int);
  4.  
  5. void d(int x)
  6. {
  7.   printf("ffs(0x%08x) = %d\n", x, ffs(x));
  8. }
  9.  
  10. int
  11. main(void)
  12. {
  13.   d(0x00000000);
  14.   d(0x00000001);
  15.   d(0x00000002);
  16.   d(0x00000005);
  17.   d(0x00010000);
  18.   d(0x00010010);
  19.   return 0;
  20. }
  21.