Untitled

mail@pastecode.io avatar
unknown
c_cpp
15 days ago
807 B
5
Indexable
Never
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