Starlab version 4.4.1 program created on Apr 27 2005 at 22:49:04 source file /home/steve/starlab/src/std/pgetopt.C Portable and simplified version of getopt() in UNIX, system V. This is a simple driver/test program for the library function. The length of an option is one character, and the argument has to follow the corresponding option, separated by a space (or tab). Options must start with a minus sign, but more than one option can be combined after the same minus sign. Thus, the next four command lines all have the same effect, while the following three are illegal and will give error messages. good -a -b 10 -c good -c -a -b 10 good -b 10 -ca good -acb 10 bad -a -b10 -c bad -ab10c bad -a -c -b Usage: pgetopt Options: -a test: no argument expected -b test: one argument expected -c test: two arguments expected -d test: three arguments expected -e test: gour arguments expected -f test: no argument expected -g test: one optional argument -h test: no argument expected Written by Piet Hut and Steve McMillan. Report bugs to starlab (at) sns.ias.edu.