The code

As usual, execution begins at main() in main.c. We won't talk about main(); it only does very basic command-line processing (via our optproc() function), and then calls execute_resmgr().