find.h (570B)
1 struct search; 2 3 struct search { 4 int fin; 5 int new; 6 int inv; 7 struct item *(*inc)(struct item *); 8 struct item *cur, *end; 9 struct item *(*match)(struct search *); 10 union { 11 regex_t reg; 12 char *str; 13 struct { 14 int ind; 15 int min, max; 16 } num; 17 } u; 18 }; 19 20 struct item *nextitem(struct item *); 21 struct item *previtem(struct item *); 22 void renewsearch(struct search *, struct item *); 23 char *prepsearch(struct search *, struct item *, char *); 24 void stopsearch(struct search *); 25 struct item *findnext(struct search *); 26 struct item *find(char *, struct item *, char **);