Re: Sequence of execution of getopt() and usage()...

2006-09-11 Thread Chuck Swiger
On Sep 11, 2006, at 5:27 AM, Amarendra Godbole wrote: This is a general FreeBSD source related question, and I am posting it here, as it did not fit in any other FreeBSD lists... This list is a quite reasonable choice to ask such questions. :-) While browsing through sources for different us

Sequence of execution of getopt() and usage()...

2006-09-11 Thread Amarendra Godbole
Hi, This is a general FreeBSD source related question, and I am posting it here, as it did not fit in any other FreeBSD lists... While browsing through sources for different userland utilities (cat, chmod, and so on), I noticed that in main(), first getopt() is called in a while loop, and then t