/* own.h Definitions and function prototypes for program match */ #ifndef TRUE #define FALSE (0) #define TRUE (!FALSE) #endif #ifndef STRINGSIZE #define STRINGSIZE 256 #endif #if !defined(BUFSIZE) #define BUFSIZE 4096 #endif /* prototypes of global functions */ /* this is the main function that does all the work */ int match(const char from[], const char match[]); /* uncomment this if you want a match without special characters */ /* #define NO_SPECIAL_CHARACTERS */ /* macro for testing character similarity. Notice parentheses! */ #define SAME(C1,C2,IC) ((IC)?(toupper((C1)) == toupper((C2))):((C1)==(C2)))