home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 05oslib / dos / next_fm.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  290 b   |  19 lines

  1. /*
  2.  *    next_fm - find next file match in work directory
  3.  */
  4.  
  5. #include <dos.h>
  6. #include <local\doslib.h>
  7.  
  8. int
  9. next_fm()
  10. {
  11.     union REGS inregs, outregs;
  12.  
  13.     /* find next matching file */
  14.     inregs.h.ah = FIND_NEXT;
  15.     (void)intdos(&inregs, &outregs);
  16.  
  17.     return (outregs.x.cflag);
  18. }
  19.