From 724bc3c0b0563d7753d33d7075ac6f4c83cb9c65 Mon Sep 17 00:00:00 2001 From: jaredy <> Date: Tue, 26 Jul 2005 04:14:58 +0000 Subject: provide a description of the EXAMPLE; ok jmc --- src/lib/libc/stdlib/getopt.3 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index c721bbcff9..ed4456f52f 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getopt.3,v 1.33 2005/07/01 05:18:57 jmc Exp $ +.\" $OpenBSD: getopt.3,v 1.34 2005/07/26 04:14:58 jaredy Exp $ .\" .Dd December 17, 2002 .Dt GETOPT 3 @@ -166,7 +166,16 @@ in is ignored. .El .Sh EXAMPLES -.Bd -literal -compact +The following code accepts the options +.Fl b +and +.Fl f Ar argument +and adjusts +.Va argc +and +.Va argv +after option argument processing has completed. +.Bd -literal -offset indent extern char *optarg; extern int optind; int bflag, ch, fd; -- cgit v1.2.3-55-g6feb