Browse Source

provide a description of the EXAMPLE; ok jmc

OPENBSD_3_8
jaredy 19 years ago
parent
commit
fcfe8543e4
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      src/lib/libc/stdlib/getopt.3

+ 11
- 2
src/lib/libc/stdlib/getopt.3 View File

@ -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;


Loading…
Cancel
Save