Understanding your program’s scope
In the realm of software development, identifying the scope of a program is paramount. Take, for example, the task of counting words, lines, and characters within a file. This seemingly simple task forms the basis of the Unix wc
command, we will talk about it for the majority of this article, as it is a good example of how one should approach software design, we’ll analyze wc.c
and the two header files used.