re 73 grep.c match(char *re, char *text) re 75 grep.c if(re[0] == '^') re 76 grep.c return matchhere(re+1, text); re 78 grep.c if(matchhere(re, text)) re 85 grep.c int matchhere(char *re, char *text) re 87 grep.c if(re[0] == '\0') re 89 grep.c if(re[1] == '*') re 90 grep.c return matchstar(re[0], re+2, text); re 91 grep.c if(re[0] == '$' && re[1] == '\0') re 93 grep.c if(*text!='\0' && (re[0]=='.' || re[0]==*text)) re 94 grep.c return matchhere(re+1, text+1); re 99 grep.c int matchstar(int c, char *re, char *text) re 102 grep.c if(matchhere(re, text))