home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / sphinx / examples / other / filefind.c__ < prev    next >
Encoding:
Text File  |  1994-05-27  |  424 b   |  21 lines

  1. /*
  2.     NAME:  FILEFIND.C--
  3.     DESCRIPTION:  Finds all files in the current directory that fit the
  4.                   search criteria.
  5.     RUN FILE SIZE:  117 bytes
  6. */
  7.  
  8. ?include "WRITE.H--"
  9.  
  10. ?define SEARCHSTRING "*.C--"
  11.  
  12. main()
  13. {
  14. IF( FINDFIRSTFILE( , ,0b11111,SEARCHSTRING) == 0 )
  15.     {do {WRITESTR(0x80+0x1E);
  16.          WRITELN();
  17.         } while( FINDNEXTFILE() == 0 );
  18.     }
  19. }
  20.  
  21. /* end of FILEFIND.C-- */