home *** CD-ROM | disk | FTP | other *** search
- #include <libraries/dosextens.h>
- #include "req.h"
-
- /* The file requester needs to have these */
- struct IntuitionBase *IntuitionBase;
- struct GxfBase *GfxBase;
- UBYTE path[512];
- UBYTE file[512];
-
- main(argc,argv)
- short argc;
- char *argv[];
- {
- extern long file_requester();
- long rv;
- FileReq r;
-
- path[0] = file[0] = '\0';
-
-
- /* set up the structure for file_requester */
- r.screen = 0L;
- r.path = path;
- r.file = file;
- r.heading = (UBYTE *)"Directory";
- r.buf = 0L;
- r.bufsize = 25000L;
- r.n_entries = 2000L;
- r.flags = 0;
- if( argc ) r.flags |= CLI_BIT;
- r.user_signals = 0L;
- r.user_func = 0L;
-
- rv = file_requester(&r);
- }
-
-