diff options
| author | yamt <yamt@NetBSD.org> | 2002-08-10 17:25:01 +0000 |
|---|---|---|
| committer | yamt <yamt@NetBSD.org> | 2002-08-10 17:25:01 +0000 |
| commit | 145cf30b9f2fb92556805d4e36b4b8c5288fa729 (patch) | |
| tree | a355a85533e88c6f099cfdadb89d01b16c353d75 /lib/libc/stdlib | |
| parent | 1060c75faa8727deaf6e8bd0789c902f016c2798 (diff) | |
fix sample code. from openbsd.
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/getopt.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index 0e6e8c58f3f..37283f369f8 100644 --- a/lib/libc/stdlib/getopt.3 +++ b/lib/libc/stdlib/getopt.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: getopt.3,v 1.22 2002/02/07 09:24:06 ross Exp $ +.\" $NetBSD: getopt.3,v 1.23 2002/08/10 17:25:01 yamt Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -33,7 +33,7 @@ .\" .\" @(#)getopt.3 8.5 (Berkeley) 4/27/95 .\" -.Dd April 27, 1995 +.Dd August 11, 2002 .Dt GETOPT 3 .Os .Sh NAME @@ -248,7 +248,7 @@ The following code fragment works in most cases. int length; char *p; -while ((c = getopt(argc, argv, "0123456789")) != -1) +while ((c = getopt(argc, argv, "0123456789")) != -1) { switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': |
