make complete and don't overlap
[unix-history] / usr / src / include / regexp.h
CommitLineData
b403a696
KB
1/*
2 * Definitions etc. for regexp(3) routines.
3 *
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
5 * not the System V one.
6 *
7 * @(#)regexp.h 1.1 (Berkeley) %G%
8 */
9#define NSUBEXP 10
10typedef struct regexp {
11 char *startp[NSUBEXP];
12 char *endp[NSUBEXP];
13 char regstart; /* Internal use only. */
14 char reganch; /* Internal use only. */
15 char *regmust; /* Internal use only. */
16 int regmlen; /* Internal use only. */
17 char program[1]; /* Unwarranted chumminess with compiler. */
18} regexp;
19
20extern regexp *regcomp();
21extern int regexec();
22extern void regsub();
23extern void regerror();