re 72 user/grep.c match(char *re, char *text) re 74 user/grep.c if(re[0] == '^') re 75 user/grep.c return matchhere(re+1, text); re 77 user/grep.c if(matchhere(re, text)) re 84 user/grep.c int matchhere(char *re, char *text) re 86 user/grep.c if(re[0] == '\0') re 88 user/grep.c if(re[1] == '*') re 89 user/grep.c return matchstar(re[0], re+2, text); re 90 user/grep.c if(re[0] == '$' && re[1] == '\0') re 92 user/grep.c if(*text!='\0' && (re[0]=='.' || re[0]==*text)) re 93 user/grep.c return matchhere(re+1, text+1); re 98 user/grep.c int matchstar(int c, char *re, char *text) re 101 user/grep.c if(matchhere(re, text))