text 72 user/grep.c match(char *re, char *text) text 75 user/grep.c return matchhere(re+1, text); text 77 user/grep.c if(matchhere(re, text)) text 79 user/grep.c }while(*text++ != '\0'); text 84 user/grep.c int matchhere(char *re, char *text) text 89 user/grep.c return matchstar(re[0], re+2, text); text 91 user/grep.c return *text == '\0'; text 92 user/grep.c if(*text!='\0' && (re[0]=='.' || re[0]==*text)) text 93 user/grep.c return matchhere(re+1, text+1); text 98 user/grep.c int matchstar(int c, char *re, char *text) text 101 user/grep.c if(matchhere(re, text)) text 103 user/grep.c }while(*text!='\0' && (*text++==c || c=='.'));