In this chapter
Command-line option and argument interpretation is usually the first task of any program. This chapter examines how C (and C++) programs access their command-line arguments, describes standard routines for parsing options, and takes a look at the environment.
The word arguments has two meanings. The more technical definition is “all the ’words’ on the command line.” For example:
$ ls main.c opts.c process.c
Here, the user typed four “words.” All four words ...