home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Games 3 / cd.iso / games / wordy / srch.h < prev    next >
C/C++ Source or Header  |  1994-11-05  |  898b  |  25 lines

  1. /*************************************************************************/
  2. /*                              SEARCH HEADER                            */ 
  3. /* M\Cooper, 3425 Chestnut Ridge Road, Grantsville, Maryland 21536-9801  */
  4. /*************************************************************************/
  5.  
  6. #include <stdio.h>
  7. #include <io.h>
  8. #include <stdlib.h>
  9. #include <string.h>
  10.  
  11. #define COMPARISON_ERROR 1
  12. #define MAXTESTS 50
  13. #define MAX_WLEN 12
  14. #define MAX_SPAN 25
  15.  
  16. const char Wordfile[] = "word.lst";   //File containing list of valid words.
  17. /*Was char Wordfile[] = "work.lst"; ***for debugging*** */
  18.  
  19. typedef enum { FAIL, SUCCESS } Rflag;
  20.  
  21. /******************************PROTOTYPES***********************************/
  22. Rflag l_search( char *search_word, FILE *fp );
  23. Rflag b_search( char *search_word, FILE *fp, long left, long right );
  24. Rflag search( char *test_word );
  25.