15 Command Line Arguments and Raw I/O
In this chapter, we explore how command line arguments allow the operating system to pass information to a program when the program is invoked. We also take a look at another feature that’s close to the operating system: the raw input/output (I/O) system. This system lets us precisely control how a program performs I/O. Done right, it can be a tremendous asset to a program.
We’ll use the raw I/O system to perform a high-speed file copy. This program will also use command line arguments to specify the source and destination files, so we don’t need to hardcode them into the program.
Command Line Arguments ...
Get Bare Metal C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.