Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h function in grep. c #1

Open
juhishake opened this issue Nov 1, 2022 · 1 comment
Open

h function in grep. c #1

juhishake opened this issue Nov 1, 2022 · 1 comment

Comments

@juhishake
Copy link
Owner

juhishake commented Nov 1, 2022

function 'o' in grep.c is not implemented like the other functions are. Programmer has to introduce the grepo flag and turn it to 1 if -o is detected. if yes then further the function o is called from functions.c

@juhishake
Copy link
Owner Author

SOLUTION:
case o:
grepo = 1;
break;

if(grepo == 1){
o(fp, word);
grepo = 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant