Untitled

 avatar
unknown
c_cpp
a year ago
807 B
9
Indexable
main.c 
int exit_flag = 0;
if (result != EXIT_SUCCESS) exit_flag = 1;


grep_functions.c
int MatchPattern(const char *line, struct GrepOptions *options,

int exit_flag = 0;
    exit_flag = 1;

+grep_functions.h

test6gen.c
for (int i = 0; i < 160; ++i)

grep % grep Line1 -f pattern_file.txt test_grep_9.txt test_grep_1.txt test_grep_2.txt test_grep_3.txt     
grep: Line1: No such file or directory
test_grep_9.txt:Line 1
test_grep_9.txt:Line 2
test_grep_9.txt:Line 3
test_grep_1.txt:Line 1
test_grep_1.txt:Line 2
test_grep_1.txt:Line 3
test_grep_2.txt:Line 1
test_grep_2.txt:Line 3
test_grep_3.txt:Line 1
test_grep_3.txt:Line 2
test_grep_3.txt:Line 3
arryntaw@oa-n5 grep % ./s21_grep Line1 -f pattern_file.txt test_grep_9.txt test_grep_1.txt test_grep_2.txt test_grep_3.txt
-f: No such file or directory

Leave a Comment