1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include<sys/types.h> #include<regex.h> int regcomp(regex_t * regexp, const char *str, int val) { } size_t regerror(int val, const regex_t *r, char *c, size_t t) { } int regexec(const regex_t *r, const char *c, size_t s, regmatch_t regm[], int i) { } void regfree(regex_t *r) { }