Question: 3 . Write a C program that counts the number of non white - space characters in an inputtext file. Program takes as command argument
Write a C program that counts the number of non whitespace characters in an inputtext file. Program takes as command arguments the name of the input file and the output with option f or s Based on the option flags, it displays the output on the standard output, or writes the output to an output file. points
The command format is as follows:
command f inputfile outputfile
or
command s inputfile
f indicates writing to an output file;
s indicates displaying the output on the screen.
Also notice the errors caused by incomplete arguments.
Be sure to comment in your program, including: The name of the author of the program your name and the date it was written, a concise description of what the program does, a clear description of its limitations if it does not meet all specifications, and explanation for critical code and data declarations. The same should also be done for each function written in the program. You will lose some points if the above comment part is missing.
Submit the source code and the screenshots for the execution results for options f and s You can insert them in the Word document for submission.
CREATE IN PUTTY!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
