Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site pegasus.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!pegasus!hansen
From: han...@pegasus.UUCP (Tony L. Hansen)
Newsgroups: net.sources
Subject: Re: public domain getopt
Message-ID: <1253@pegasus.UUCP>
Date: Tue, 1-May-84 10:54:16 EDT
Article-I.D.: pegasus.1253
Posted: Tue May  1 10:54:16 1984
Date-Received: Wed, 2-May-84 04:40:10 EDT
Organization: AT&T Information Systems, Lincroft NJ
Lines: 10

One minor difference between the behaviour of the public domain getopt(1)
recently posted and the System III/System V/System Vr2 getopt(1) is that
AT&T's doesn't output any of the new option list until it has scanned the
entire option list first for errors.  Change the printf's into some
combination of strcat's and sprintf's into a string buffer while scanning
the arguments. Then output the new list all at once with a printf. The
coding is left as an exercise for the reader....

					Tony Hansen
					pegasus!hansen