1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

prog +f 3.2 -f name -n 5 input

IMAGE imgs/lec-15.sli02.gif

"prog"

"+f"

"3.2"

"-f"

"name"

"-n"

"5"

"input"

See man getopt for a package to decode command lines

Program Design

*

we want one procedure that we can call to process all the arguments, we will call this procedure process_arguments

what are the parameters to this procedure, what does it need to know

*

March 1, 1999

Page 4

C201/TAM