Lab5a Examples

Here is some sample Lab 5a interaction. Note that your error messages can be different, but, when there is an error, you should have some sort of error message outputted to stderr and have your program exit with a nonzero exit code.

lab5a-interaction.txt

The POSIX standard for handling command line options is here: Utility Syntax Guidelines. Note that the getopt() function already does most of what you need to do, but your code will have to handle repeated options correctly. Also, you will need a small bit of code to check that you get all required options and that you have the correct number of operands (one, the trace file).

Here is an example trace, the one that I used above:

0x7ff85467
0x08048924
0x4f356728
0x7d2e426b
0x704f5437
0x2a6f3652
0xa3683a5e
0x3b323078
0x6a73527e
Back to top
blog/lab5a_examples.txt · Last modified: 2009/10/10 14:53 by jeffk