1 #define REG_EXTENDED 0x01
4 #define REG_NEWLINE 0x08
5 #define REG_NOTBOL 0x10
6 #define REG_NOTEOL 0x20
13 typedef struct regex
*regex_t
;
15 int regcomp(regex_t
*preg
, char *regex
, int cflags
);
16 int regexec(regex_t
*preg
, char *str
, int nmatch
, regmatch_t pmatch
[], int eflags
);
17 int regerror(int errcode
, regex_t
*preg
, char *errbuf
, int errbuf_size
);
18 void regfree(regex_t
*preg
);