summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getopt.3
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-07-15 07:53:42 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-07-15 07:53:42 +0000
commit7ebcc426efefea9cd16ac6f565e72030c608f7a4 (patch)
treed6c008b8ae357e7c4c800baa477713b82a6ee2f2 /lib/libc/stdlib/getopt.3
parentd087ad9cc9c9a047e48ac7d97861bd67e56c4085 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/getopt.3')
-rw-r--r--lib/libc/stdlib/getopt.312
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 70857b9a960f..bf1549f368bd 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -124,7 +124,7 @@ The
.Fn getopt
function
returns \-1
-when the argument list is exhausted, or
+when the argument list is exhausted, or
.Ql ?\&
if a non-recognized
option is encountered.
@@ -152,8 +152,8 @@ Setting
.Va opterr
to a zero will disable these error messages.
If
-.Va optstring
-has a leading
+.Va optstring
+has a leading
.Ql \&:
then a missing option argument causes a
.Ql \&:
@@ -202,13 +202,13 @@ function appeared in
The
.Fn getopt
function was once specified to return
-.Dv EOF
+.Dv EOF
instead of \-1.
This was changed by
.St -p1003.2-92
-to decouple
+to decouple
.Fn getopt
-from
+from
.Pa <stdio.h> .
.Pp
A single dash