home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Title : jzfndnxt │
- │ Purpose : find the next matching file from the disk transfer area specified│
- │ in a previous call to jzfndfst │
- │ Parms │
- │ fdta - directory record defined in jzdirect.h │
- │ │
- │ i.e. error = jzfndnxt(&dir_record); │
- │ Written by Jack Zucker - 75766,1336 301-794-5950 on 1/15/85 │ │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- #include <jaz.h>
- #include <jzdirect.h>
- jzfndnxt(fdta)
- TDIR *fdta;
-
- {
-
- TREG wreg;
- int wdtaofs,wdtaseg;
-
- jzgetdta(&wdtaofs,&wdtaseg); /* save old dta address */
-
- jzsetdta(fdta); /* set new address */
-
- wreg.h.ah = 0x4f; /* find next function */
- msdos(&wreg);
-
- jzsetdta(wdtaofs); /* conditionalize later for large model */
-
- if (wreg.x.flags & 0x0001 == 1) return(wreg.x.ax);
- else return(0); /* return 0 if no error, otherwise dos error code */
-
- }