menu

Questions & Answers

Implement the functionality of the wc and head controls

I need help to solve these requirements: Implement the functionality of the wc and head controls. The wc command will need to use and recognize the -w and -c options. The head command will need to use and recognize the -c and -n options. The functionality of the 2 commands in the C / C ++ application will have to be identical to the functionality of the bash wc and head commands (including using the 2 options or generating error messages). It is not accepted to use the system / exec / execute functions to solve it.

Comments:
2023-01-21 23:52:10
On Linux, wc is part of GNU coreutils whose source code is free software. You are allowed to download the source code, study it, and improve it
2023-01-21 23:52:10
Please provide some minimal reproducible example in your question (for example, some C code with a main) and explain in more than one paragraph the relation between wc(1) and SymbolicC++. I see no relation between these. Notice that Stack-Overflow is not a do-my-homework website
Answers(0) :