home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume4
/
match1.2
/
match.h
< prev
next >
Wrap
C/C++ Source or Header
|
1986-11-30
|
472b
|
15 lines
#define FIRSTCHAR ' '
#define MAXCHAR 0377
#define MAXBUFF 8192
#define MAXSIZE 100
#define MAXPATS 100 /* max number of patterns */
#define PSIZEDEF 1024 /* default storage for patterns from a tty */
#define min(x,y) ((x) < (y) ? (x) : (y))
#define max(x,y) ((x) > (y) ? (x) : (y))
struct PattDesc {
char *Pattern;
int PatLen; /* pattern length */
char *Start; /* starting position of search (at beginning of pattern) */
int Success; /* true when pattern found */
};