fix sample code. from openbsd.

This commit is contained in:
yamt 2002-08-10 17:25:01 +00:00
parent 1060c75faa
commit 145cf30b9f
1 changed files with 3 additions and 3 deletions

View File

@ -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':