🐛
This commit is contained in:
@ -35,7 +35,7 @@ int fauxgrep_file(char const *needle, char const *path) {
|
|||||||
|
|
||||||
while (getline(&line, &linelen, f) != -1) {
|
while (getline(&line, &linelen, f) != -1) {
|
||||||
if (strstr(line, needle) != NULL) {
|
if (strstr(line, needle) != NULL) {
|
||||||
//printf("%s:%d: %s", path, lineno, line);
|
printf("%s:%d: %s", path, lineno, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
lineno++;
|
lineno++;
|
||||||
|
Reference in New Issue
Block a user