home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog-asm / talincod.lha / talincode.lha / findboard.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-11  |  636 b   |  32 lines

  1. /* finds informatiion about all installed cards in the system.
  2.  
  3.     To compile using Manx C:
  4.  
  5.         cc findboard
  6.         ln findboard.o -lc
  7.  
  8. */
  9.  
  10.  
  11. #include "libraries/expansionbase.h"
  12. #include "libraries/expansion.h"
  13. #include "libraries/configvars.h"
  14.  
  15. struct ExpansionBase *ExpansionBase, *OpenLibrary();
  16.  
  17. void main()
  18. {    struct ConfigDev        *cd = NULL;
  19.  
  20.     ExpansionBase = OpenLibrary(EXPANSIONNAME,0L);
  21.  
  22.     while (cd = FindConfigDev(cd,-1L,-1L))
  23.     {    printf("Address: $%08lx Size: $%08lx Manufacturer: %5d Product %3d\n",
  24.             cd->cd_BoardAddr,
  25.             cd->cd_BoardSize,
  26.             cd->cd_Rom.er_Manufacturer,
  27.             cd->cd_Rom.er_Product);
  28.     }
  29.  
  30.     CloseLibrary(ExpansionBase);
  31. }
  32.