/** * The contents of this file are only a suggestion. * Feel free to change anything. */ #include "matcher.h" /** * Returns true if partial_line matches pattern, starting from * the first char of partial_line. */ int matches_leading(char *partial_line, char *pattern) { // You can use this recommended helper function, or not. return 0; } /** * Implementation of your matcher function, which * will be called by the main program. * * You may assume that both line and pattern point * to reasonably short, null-terminated strings. */ int rgrep_matches(char *line, char *pattern) { // // TODO put your code here. // return 0; }