home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 191.lha / ARequester / main.c < prev    next >
C/C++ Source or Header  |  1988-04-28  |  606b  |  37 lines

  1. #include <libraries/dosextens.h>
  2. #include "req.h"
  3.  
  4. /* The file requester needs to have these */
  5. struct IntuitionBase *IntuitionBase;
  6. struct GxfBase *GfxBase;
  7. UBYTE path[512];
  8. UBYTE file[512];
  9.  
  10. main(argc,argv)
  11. short argc;
  12. char *argv[];
  13. {
  14. extern long file_requester();
  15. long rv;
  16. FileReq r;
  17.  
  18. path[0] = file[0] = '\0';
  19.  
  20.  
  21. /* set up the structure for file_requester */
  22. r.screen = 0L;
  23. r.path = path;
  24. r.file = file;
  25. r.heading = (UBYTE *)"Directory";
  26. r.buf = 0L;
  27. r.bufsize = 25000L;
  28. r.n_entries = 2000L;
  29. r.flags = 0;
  30. if( argc ) r.flags |= CLI_BIT;
  31. r.user_signals = 0L;
  32. r.user_func = 0L;
  33.  
  34. rv = file_requester(&r);
  35. }
  36.  
  37.