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